nats-core only accepts a single url now? #946
Unanswered
janw-fortum
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.
-
Hi, IIRC with
nats-pywe could pass a list of URLs for clustered instances. If I’m reading this correctly, innats-coreyou can currently only pass a single URL, but there’s still ano_randomizeparameter (Whether to disable randomizing the server pool), which makes it seem like some kind of server pooling and failover/switchover is still implemented.What’s the recommended approach now? For example, if I have 3 instances but can only pass a single URL, I can’t really assume
instance1will always accept connections if I want fault tolerance. Should I just callconnect()in a loop over all 3 URLs?Beta Was this translation helpful? Give feedback.
All reactions