Replies: 1 comment 6 replies
-
The design of NATS is such that a client application can connect to any server within the system and function properly. |
Beta Was this translation helpful? Give feedback.
6 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Greetings!
Let's say we have a command addressed by different clients. And for each set of clients we have preferrable server. So, by default, each server may subscribe to each subject separately per client ID, e.g. call one by one "cmd.001", "cmd.145", "cmd.222" and so on. Is it possible to subscribe it in one call, like first server subcribes to "cmd.001-200", another to "cmd.201-400" etc. Or, ideally, to submit a set of id numbers for routing. Is it ever possible to set up such kind of routing?
Each server has preloaded clients data to reach better performance, i.e. it would be expensive to synchronize clients data in the case if every server may serve any client. At the same time, request-reply request is preferrable because it gives very quick response in the case when there are no subcsribers for requested subject.
P.S. of course there is an option to make clients know which server they are addressing, while it doesn't look as good idea. It would be great to let clients to submit commands to NATS without knowing anything about command executors behind it.
Beta Was this translation helpful? Give feedback.
All reactions