As i am using netty to make chat application.As i have cluster of netty servers.
As i am storing channel id of all clients in Redis to have reference of all channels which are connected to netty servers.
I want to store all Channel objects to Redis so that from any node or instance i can get all clients Channel objects because node on which if i want to get other clients Channel which are created on some other node, How to get those client Channel objects which reside on other node or instance?
So its better to store client Channel object to redis so from any node i can get any client Channel object. but Channel implementing class is not Serializable in netty.
- So how to store Channel object in Redis?
- Is it good idea to serialize Channel object by extending Channelobject and implementing Serializable interface?
- If this solution is not good, then how to get any client Channelobject from any node in a netty cluster?
Thanks.