3 ms·
Can you give an example?
by simonhamp 3y ago
Can you give an example?
- klysm 3y agoComplex admin dashboard with lots of interactions that should be low latency
- pier25 3y agoYou can have complex interactions with an MPA. Regarding latency, it's mostly related to the distance between the user and the database. The routing strategy has nothing to do with that.
- klysm 3y agoThe routing strategy can have a significant impact on what latency the user sees.
- simonhamp 3y agoYeh I've seen some of those as SPAs... ouch Honestly, I'd rather not be presented with an empty grid of spinners tbh I think you can get something useful on first render and then dynamically update from there (either with polling, SSE or WebSockets) all without the added complexity of an SPA
- spiderxxxx 3y agoI make mine such that the first load includes the data needed in the first load of the page. If you're going to populate a grid on the first load, just have the backend include that in the page itself inside a dynamically inserted javascript block. For something like paged search results, you can preload the first page, and preload the second page a short while after that.