Skip to content

Jetstream: Publish #607

Answered by scottf
robertmircea asked this question in Q&A
Discussion options

You must be logged in to vote
  1. There is no batch. You could use an async publish, collect the tasks and inspect them later, say every N messages.
    2.A You could just publish async and ignore the task/ack.
    2.B Once you have setup the stream and subject, you can just do a core publish to the subject. Under the covers the Jetstream publish is just a core request/reply where the reply is from the server. There is an example of that here: https://github.com/nats-io/nats.net/blob/master/src/Samples/JetStreamPublishVsCorePublish/JetStreamPublishVsCorePublish.cs
  2. I would check that the task finishes without exception (likely a timeout) and the HasError flag.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by scottf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants