logoalt Hacker News

nine_k05/03/20254 repliesview on HN

Unless you can guarantee RTT under 100ms, you have to manage some state on client side, else your UI will feel sluggish.


Replies

freetonik05/03/2025

I’d rather have sluggish UI with proper feedback than potentially inconsistent states which I often experience with modern SPAs. At least that represents reality. Just today I was posting an ad on the local classifieds page, and the visual (client) state convinced me that everything was fast and my photos are uploaded. Turned out all state was lost and never reached the server, and I had to redo everything again.

const_cast05/03/2025

It’s trivial to achieve under 100ms in the US with even just one server.

Most companies aren’t international.

show 1 reply
devnull305/03/2025

Barring the interactivity SPAs will also end up talking to server anyway. So even SPAs will feel sluggish in a high latency env.

victorbjorklund05/05/2025

Phoenix Liveview works pretty good without client side state. Sure if you just have a toggle mobile menu you might sprinkle some JS for it but other state lives in the server and the delta is sent to the client via websockets