This repository was archived by the owner on May 8, 2026. It is now read-only.
Repository navigation
How to ensure no messages dropped during server cluster deployment? #663
Unanswered
bcheidemann
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I have set up my nats servers set up as follows:
I want to be sure that no messages are dropped during deployments, so I deployed the cluster, a test subscriber and a test publisher to fly.io. As expected, servers gossip information about new peers as they come online, and the published is able to continually publish messages to the cluster.
However, the subscriber drops messages during the deployment. Here is the code for my subscriber:
I'm wondering, what is the proper way to ensure that subscribers are continually able to receive messages during a deployment?
I know Jetstream can be used to guarantee at least once delivery, but is there some other method that I'm missing if I don't want to use Jetstream?
For instance, should I listen to the
nc.status()stream for an "ldm" status, then reconnect?Here are my subscribers logs in case they're of use:
All reactions