add nats queue,support default and jetstream mode #64
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The current version requires golang version 1.20 and above.
nats has officially deprecated the nats-streaming mode, so this version cannot support stanq in the library.
The current version implements nats default publish-subscribe and JetStream-based publish definition.
The default mode publisher publishes messages that are not landed, and if the subscriber is not online, the messages are lost.
Jetstream mode , the message landing , to ensure that the message is not lost , the message landing in the storage of a variety of ways , see the official nats documents
The current version has not yet realized the Reply mode for publishing messages