top | item 47098361

(no title)

andersmurphy | 8 days ago

> But we’ve hit the ceiling for SSE. That terrible Claude UI refresh gif is state of the art for SSE. And it sucks.

This is nothing to do with SSE. It's trivial to persist state over disconnects and refresh with SSE. You can do all the same pub sub tricks.

None of theses companies are even using brotli on their SSE connection for 40-400x compression.

It's just bad engineering and it's going to be much worse with web sockets. Because, you have to rebuild http from scratch, compression is nowhere near as good, bidirectional nukes your mobile battery because of the duplex antenna, etc, etc.

discuss

order

andersmurphy|8 days ago

Just to add. The main value of websockets was faster up events pre http2. But, now with multiplexing in http2 that's no longer the case.

So the only thing you get from websockets is bidirectional events (at the cost of all the production challenges websockets bring). In practice most problems don't need that feature.

anonzzzies|8 days ago

Thanks for that. I know very little about frontend and this definitely will help me make something better.