On Fri, Mar 20, 2009 at 8:26 AM, Sanjeev Sachdev <[email protected]> wrote: > Could you please tell if MINA can work in a cluster mode? > > I have developed a server using MINA that communicates with remote devices > and stores conversational information in the IoSession object. Can IoSession > object work in a cluster mode?
What kind of cluster are you hoping to run MINA in? For appserver clustering, given that the session indirectly refer to the socket, which would be hard to cluster, I fail to see how it could work. During a failover, the socket would have to be recreated at which time a new session would be created. But, IoSession is an abstracted interface, so you might be able to create a session wrapper which is clusterable and that could be reused after a failover. For Terracotta type of clustering, I'm unsure of how Terracotta supports socket clustering in general and NIO clustering in particular. But, then again, I haven't actually played with any of this, so I'm mostly guessing here. Someone with more knowledge in this area might have more information. I will likely be looking into something similar in the future. /niklas
