Situation : A Load Balancer has say 2 machines A and B behind it. Suppose machine A receives the request from the client via the load balancer and passes the message to a queue whose consumer is a micro service. The micro service does its work and makes a json message. This json message is to be sent back back to the client.
Current Implementation : The micro service sends back the json message it created to the queue between machine A and the micro service. The server id is passed in the message to the micro service by which it knows which queue to publish the message to. So basically there are queues between the micro service and every machine behind the load balancer.
Problem : With growing traffic the number of machines is increasing and so is the number of queues between the micro service and the machine which is a headache. Is there a way to respond to a request from Machine B which was received on Machine A? I do not know how the context be maintained. Somebody suggested Redis but is it possible?
via Vidur Khanna
No comments:
Post a Comment