0

I have several servers handling the same requests and several clients sending requests. The servers are routers to keep/track the identity of the clients and the clients are dealers which round robin servers. Does this dealer/router pair without a broker make sense? It works and fits my need but I don't see this pattern on the official guides.

Serg046
  • 1,043
  • 1
  • 13
  • 42
  • I can understand this "The client are dealers which are round robin servers", would you please explain more ? – Amir Dec 09 '21 at 23:37
  • Client1 calls server1 and server2 one by one. First it calls server1, then server2, then server1 and so on. So one client can call different servers, servers respond to the same client (current caller). – Serg046 Dec 10 '21 at 21:20
  • Are you trying to implement some approach of load balancing ? – Amir Dec 10 '21 at 22:51
  • Yes, something like Freelance pattern. – Serg046 Dec 10 '21 at 22:55

1 Answers1

0

If you are trying to balance your request loads between servers at the client, yes you are right. This pattern is named client-side-load-balancing. You can read about that here

But I'm not sure about your implementation.

You can see more in google SRE book.

Amir
  • 1,214
  • 7
  • 10
  • Yes, I have client side balancing but the question focuses on the type of zmq sockets. I am just not sure if router<->dealer is a good pair to go, without any req/rep etc. – Serg046 Dec 11 '21 at 11:36