3 ms·
With application servers acting as the authoritative state of a user's current phonecall status, the api client wants a websocket connection to the shard with t
by CBLT 5y ago
With application servers acting as the authoritative state of a user's current phonecall status, the api client wants a websocket connection to the shard with that user's state. It connects to one and is 302'd to the appropriate shard. It how has a websocket connection directly to the authoritative source to get notified of any state changes.
I forget exactly what the scenario was but the request was not being sent with credentials so a 401 was returned, which immediately prompted a retry with the credentials. I'd probably agree that this is covering up an issue that should be fixed.
- peteretep 5y agoHow is this a REST API rather than just a regular API being served over HTTP?
- slver 5y agoCuriously the websocket spec says the server may send 30x code during handshake, but the client is "not required to follow it". So in this case you're relying on a specific client's decision more than you're relying on universal interface.