mrniko / netty-socketio

Socket.IO server implemented on Java. Realtime java framework
Apache License 2.0
6.77k stars 1.65k forks source link

usage of hazelcast/redisson in netty-socketio #247

Open nurnabisiddique opened 9 years ago

nurnabisiddique commented 9 years ago

Dear All, i am planning to develop our chat application through netty-socketio api. we need to confirm few thing

  1. is it scalable across multiple machine and how netty-socketio achieve it?.
  2. I also found redission, hazelcast used in this netty-socketio. what is the usage this library?
Mike-Sinistralis commented 9 years ago

This library has nothing to do with scalability. The socket connection remains persistent to an instance since no redirect occurs (do not attempt to maintain a connection through different pages, that is the client's job to manage.) The servers job is to keep track of what messages have been pushed to that client, so you will want some type of tracking (based on some type of session id generally) to determine what message a client still needs pushed if they need to navigate to a new page in a real time context.

Netty by itself is capable of inter-communication between servers on the same network, which I recommend you look into, but I suspect is outside the scope of this library.

I don't know what redission is so I'm not going to attempt to answer that.