On Tue, May 3, 2011 at 4:26 PM, Abhishek Chavan <[email protected] > wrote:
> Hi All, > > I am using Apache Mina in my project where my Program acts as a server and > multiple clients may connect to it at any given point of time using TCP/IP > or UDP. I wish to maintain sessions so that I can send responses back to > client on the same socket. I wish to add a Load Balancer & a failover > mechanism so that either of my servers can process the request and if one > server is down the other server accepts all incoming requests and responds > to client on same socket. I searched for it and found this link > http://camel.apache.org/loadbalancing-mina-example.html . Is this the > correct way to go or I have to do something else. > > You can use camel to create several instances of Mina Server with one of it acts as a balancer. Last time I check, camel-mina component still use mina version 1.1.x. the above solution still introduces single point of failure, so no guarantee for 100% uptime. For failover mechanism, you have to add clusters for HA. I think this url is a good place to start http://en.wikipedia.org/wiki/High-availability_cluster
