Load balancer - how to write one for a custom application?

Posted by Poni on Stack Overflow See other posts from Stack Overflow or by Poni
Published on 2010-05-25T18:53:26Z Indexed on 2010/05/25 19:31 UTC
Read the original article Hit count: 298

Filed under:

Hi! I've written a simple server application which will run distributed on several machines.

My question is how does a network load balancer works, in general?

I've heard of round-robin and other algorithms, but what I haven't got answer to is how does the process really goes? In socket terms.

The client connects to one of the load balancer machines, asks for a "free-to-connect-to" server and simply connects to it?
That's the simpliest way I can think of.
.. or, does it use the load balancer as a proxy (that implies that all the NBs must be always connected to the application servers, and data is transferred through them)?

It's more of a general question. How would you do this?

Thank you all!

© Stack Overflow or respective owner

Related posts about network-balancer