2 ms·
> This entire round-trip allows us to update the UI in 20-30ms without flicker or expensive page loads. A lot of people have much worse ping times than that. T
by miki123211 6y ago
> This entire round-trip allows us to update the UI in 20-30ms without flicker or expensive page loads.
A lot of people have much worse ping times than that. Try using this on a satellite connection for example, and your experience won't be very pleasant.
On my internet connection, which is pretty average by polish standards, the best ping I can get is 30ms, and that only happens when the server I ping is just one or two hops away. I probably won't be able to go under 100ms when the server is in the US.
It seems like this approach sacrifices runtime performance for development speed. I feel like it might often be a good tradeoff to make, but it's a tradeoff nevertheless, and we should recognize that. Separate layers for frontend and backend introduce complexity, but client side code is client side code, you can't go much faster than that.