Load Balancing comes in two parts:
1. The local load balancing logic
2. The load balancing service that keeps track of all the servers you want to talk to.
I can't speak much about 2, but for 1 the logic in RoundRobinLoadBalancerFactory is a good example of how to implement your own load balancing logic.