NATS /JetStream persistent storage in docker context for Stream, Subjects, Durable Consumers, Messages #3974
andronachev
started this conversation in
General
Replies: 2 comments 1 reply
-
related to this discussion: #3507 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @andronachev. Based on what you provided there appears to be a few moving parts we need to tease apart.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
We are facing the following:
However, the complete state of the server is lost at redeployment time or when pod is recreated automatically... storage "File" works on simple container restart, but not on container recreation. This means the client services are automatically reconnected, out of the box with NATS.NET, but the subscription is lost, durable consumers are lost, streams and subjects as well.
Is there a suggested approach on handling this ? unfortunately I did not find it in the documentation. We did find the "SQL Store" approach but that is in the legacy nats-streaming: https://docs.nats.io/legacy/stan/changes/configuring/persistence/sql_store . We would require something similar, I imagine.
We are also considering making the client applications 100% resilient, meaning to configure at runtime, also at publish not only at Subscribe time, and to also recreate the subscriptions and consumers on the Reconnect event handler.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions