-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add UDP Multicast Option to Cache Host / Client #19
Comments
Have some more thoughts on this:
|
This is the first approach in regards with UDP Multicast feature, and it is opened to read comments, improvements and help to define the best solution needed between everybody.
The main idea behind UDP Multicast is the ability to auto discover "neighbours" to work with, a new server or client start operating in the distributed cache. With this feature servers and clients can connect and disconnect to the distributed system and all the players can operate properly communicating to the the other up players. This implementation needs to define several communications (or messages based in events) from each agent (server or client) to the multicast group to let other agents know all events happening individually.
2.1 New agent connected When a server or client connects to the multicast group will send a message HELO with its details. It will let the other agents know a new server or client is connected to the group. 2.2 Disconnect When a server or client disconnects from the group will send a message BYE letting the rest of the agents in the group it is performing a disconnect event. 2.3. Alive message Every server or client will send a ME message letting the group know this agent is still up and running, if a ME message is not sent every X seconds it could be treated as not connected.
The idea is to develop the feature as simple as possible to imcrease the functionalities in the future. The other idea behind is to keep the same behaviour the solution already has.
As mentioned this is the first approach, to improve it and develop the best solution send your feedback. |
I really like the proposed solution. If possible, mixing multicast and hardcoded together would be great in the first release. If not it could wait. I think this will be a good improvement! The client keeps track of the server lists, so I guess both client and server would subscribe to the UDP Multicast IP. |
Yes, it is possible, I will mix both list, multicast and configured. And also yes, clients and servers will join to Multicast IP. |
Per : http://stackoverflow.com/a/23483528/2420979
Add UDP Multicast option to be able to specify IP and port. Clients can then use that IP and Port to autodiscover all cache host instances.
The text was updated successfully, but these errors were encountered: