by shoo · 8y ago · 0 comments
Suppose we didn't use REST or HTTP for our API. What would be a good way to model this kind of thing?
1. Response is unimportant: do nothing
2. Response timing is not important: client polls
3. Response timing is important: server calls back into the client somehow
The article describes an implementation of point 2. Depending on the technologies available at the time, I'd argue 3 is probably more versatile. Both cases 1 and 2, and the blocking case can be implemented with case 3, if the available technology allows it.