This program is about to bring you a simple TCP loadbalancer.
The basic idea was to have a simple but reliable lodabalancer written in JAVA, that can load balance http or https traffic on 2 realservers. It was needed to acknowledge the outage of one or both of the realservers by the loadbalancer.
It had to have a good performance too.
This is my first attempt to have such a thing, and this is it.
The basic design is to have a simple tcp proxy (as you can see in the source code).
And make a simple logic that makes the load balance between the realservers.
I put hese together and there it is.
My source code may be rough (it is not a clear code) :)
Any help to improve the code is appreciated...