News for hackers. Stuff that matters.
Re:Back to basics: Why we chose long-polling over websockets by thayne on Monday January 06, 2025 @05:41AM (#42609427)
With websockets, the client can immediately acknowledge receipt of a message, since the connection is bidirectional. And on a resync the server can just send events that the client never acknowledged.
Re:Back to basics: Why we chose long-polling over websockets by ghusbands on Monday January 06, 2025 @06:37AM (#42609736)
That (to quote you) means you have to keep them in the queue until the next time the client connects, which could be a very long time.

To be clear, there's no real difference - in both cases you have to keep messages in some queue and potentially resend them until they've been acknowledged.