Hi all,
I am developing a distributed scientific application which at a very high
level can be viewed as a chat application. One feature of which is where
clients can subscribe to a group and all the messages sent to the group
should be pushed to all the clients subscribed to the group.
For implementing this feature I am planning to use the long polling feature
of CppCMS. A high level implementation detail with out any error checking
would be :
1. The client through a POST request, requests server to join a group.
2. The server extracts the client IP from the POST request and
associates it with the requested group.
3. Whenever a message is sent for a group, the server Pushes the message
to all the IP address (clients) associated with the group.
The push would be implemented using long waiting asynchronous get requests
on the client side, similar to the chat example
<http://cppcms.com/wikipp/en/page/cppcms_1x_chat>.
Following are my questions regarding the application:
1. Is there a better/ more efficient way to implement the multicast
operation?
2. If not, is there a better/ more efficient way to associate clients to
groups ?
Thanks,
Dev
|