4 ms·
Possible to receive messages using SSE (server-sent events)? I implemented it with a Postgres backend for a project once, but it was not a general solution. SS
by tomberek 5y ago
Possible to receive messages using SSE (server-sent events)? I implemented it with a Postgres backend for a project once, but it was not a general solution.
SSE provides many niceties for a queue like this.
- andrewstuart 5y agoI’m interested to hear more about what SSE benefits would be. I have looked into them a little. Are you familiar with long polling? It’s very efficient for a lot of applications. I’d be interested to hear what further benefit SSE would add.
- SahAssar 5y agoWith SSE you don't need to send a new request after you have received data to receive more. SSE also defines a format that allows for pings and the server to define how/when the client should retry failed connections.