nats-io / nats.java

Java client for NATS
Apache License 2.0
572 stars 155 forks source link

Integrate with smallrye-reactive-messaging #912

Open turing85 opened 1 year ago

turing85 commented 1 year ago

Feature Request

In order to allow usage of NATS through MiroProfile-base application, an integration with smallrye-reactive-messaging (github.com) would be beneficial.

Use Case:

Usage of NATS through the MicroProfile Reactive Messaging specification (github.com).

Proposed Change:

There is already https://github.com/smallrye/smallrye-reactive-messaging/issues/1158 with some prelimiary work. The smallrye team is explicitly looking for contributors with NATS experience (github.com).

Who Benefits From The Change(s)?

All java-applications using MicroProfile Reactive Messaging.

Alternative Approaches

Provide/implement a corresponding connector separate from smallrye.

s4iko commented 2 months ago

Hi, there is a recent Quarkus extension that do the job for Nats Jetstream: https://github.com/quarkiverse/quarkus-reactive-messaging-nats-jetstream It may still benefits the eye of a Nats expert.

For non-jetstream cases, there is a Nats component available in Apache Camel which is available with SmallRye Reactive Messaging.