Setting up a VoIP call over REST should be a single roundtrip – the HTTP overheads (especially with SPDY and HTTP/2.0) are minor, and certainly no worse than SIP or Jingle. The fact that Websockets eliminate the HTTP header overhead per-request is a fairly minor optimisation.
Other than eliminating header overhead, what ways of “optimising responsiveness” are you thinking of for signalling protocols that REST doesn’t give you already? 🙂
]]>Emmanuel,
Thanks. I tried to explain that in my post, but I guess I didn’t do a great job of it 🙂
The WebRTC API platforms usually have a mix of JavaScript and REST in them.
However, this is still possible to use a websocket with a REST API as well. Both are not mutually exclusive. I mean:
1. you have your classic REST API, for classic REST request/responses.
2. you use the same API over websocket, subscribing to REST ressources “events” to make the server push them to you.
E.g., you can imagine the benefit to check your Instant Messages history in classic REST, then subscribe to its events over you websocket, to be notified in real time, with the same REST API and objects.
This avoids the need of another JS API for the “connected” protocol, all stays in the REST API.
(and I speak of a real case: ours!)
Cheers,
Emmanuel.