|
|
|
|
|
by kbenson
1141 days ago
|
|
No, I'm talking about back end processing cost. If the main page of the app has a significant server cost in the determining what data is being sent, being able to just redisplay the data you have when you browse back to the main page instead of request it again, which could incur that large processing fee, is a large gain. As a simplisit ecanple, imagine an app which on login has to do an expensive query which takes five seconds to return because of how intensive it is on the back end. If you can just redisplay the data that's already in memory on the client, optionally updating it with a much less expensive query for what's changed recently, then you're saving about five seconds of processing time (and client wait time) by doing so. Yiu could use localStorage to do something similar without it being a SPA, but that's essentially opting into a feature that serves a similar need. Client side caching is a strong point of SPAs, so it makes sense that a use case that can leverage that heavily will have benefits. |
|