educative.io

Which server does the load balancer route the sender to

Does the load balancer route the sender to a random server? Then, does the random server check the hash table to find the server of the receiver?

Hi @Dewey_Munoz

The load balancer does not route the sender to a random server. Instead, it routes the user, identified using its UserID, to the same router by using sticky sessions; it stores the information of the server entertaining the user in the current active session.