I have a RESTful web service and a rich client application using it.
I need to implement multiple user working concurrently with this service so that when someone change something it will be reflected, as soon as possible not in a transacted maner, on the other users clients.
I’ve though of using Web Socket to notify the other clients.
1) Is that good?
2) Are there any other options that not involve long polling?
Thank you,
Ido.
Haven’t worked much on REST or JSON but to avoid polling, I guess you could implement a subscribe/notify mechanism.
The user clients will expose an endpoint “listening” for events i.e. a small web service deployed on the client side.
User client on start up registers for notification sending the port (or even full URL) it expects the notification of changes.
When a change is done, a dispatcher running in the web service can send the notification via an event (encapsulating information regarding the change) to all registered clients.