by just-tom · 3y ago · 0 comments
Using Android and Samsung internet.
Edit: I took a video screenshot https://voicer.com/v/HSpS9
Edit: Seeing the comment about websockets and server location, I am in the EU so it's possibly that. I don't get why state of the frontend is stored on the backend though. Seems an obvious performance issue.
You've mentioned no-code tools. For a client, I had to work with the no-code tool Bubble a lot. They do something similar, where the front-end is not built statically but dynamically and uses WebSockets to communicate with the back-end. I don't think this is a good idea (and that's why Bubble is also trying to switch to static pages now, but you can imagine what it takes to do that once you reach a certain size).
Also, I turned off WiFi and then clicked the counter a couple times. Obviously the clicks didn't render. When I turned it on, then the counter updated one at a time at what felt like 300ms intervals. I often use the web from the train as I commute and data service can be spotty. I expect I'd see input latency in the minutes if I tried.
I think this is only viable if you're certain all your users have ping <100ms, and are on stable connections.
If you have to use this model, try batching user events (10 clicks => increment by 10) and cancelling old events (slider events at 5, 10, 20; only send slider=20 event).