I am currently developing a REST interface for a distributed system. This is a client / server architecture, but with two messaging patterns:
- req / resp: the most RESTful approach, it will be a CRUD interface for accessing / creating / modifying / deleting objects on the server.
- pub / subs: this is my main doubt. I need a server to send asynchronous notifications to the client as soon as possible.
Web Search I discovered that one of the solutions could be to implement REST servers on the server and client: Publish / subscribe to the REST-HTTP Simple Protocol web services architecture?
Another alternative would be to implement blocking-REST, and therefore the client does not need to listen on a specific port: Using REST request blocking to implement publishing / subscription
I would like to know what options you would consider for implementing an interface like this. Thanks!
rest publish-subscribe
chrpinedo
source share