Please give an example of Republish #5615
Replies: 3 comments 4 replies
-
As far as I know the Publish and Subscribe a fire and forget where as the Jetstream publish is persistence and the consumer can be set with specific Acknowledgement policy, Max Redelivery/Retry, Backoff/Retry Timing, etc. |
Beta Was this translation helpful? Give feedback.
-
Republish means the stream sends the message to a normal core subject after receiving it and in headers you will find detsils like the stream sequence. Setting it up is just putting a subject in the configuration item in the stream republish field. You can use it to avoid making consumers of all you want is the most recent messages on a stream - unfiltered. Use the headers to detect if you missed any messages and use a stream get to fetch them. |
Beta Was this translation helpful? Give feedback.
-
It would be great if I had an example of it. Thanks a lot. |
Beta Was this translation helpful? Give feedback.
-
I have two questions: how are core NATS subscribers and consumers in jetstream different? And an example of using Subscriber and Republish to increase performance. Thanks a lot.
Beta Was this translation helpful? Give feedback.
All reactions