Client cache aside
We have already utilized server-side caching by implementing a simple cache-aside pattern using the Redis cache. However, this cache only helps us to improve the service infrastructure's performance. In order to be able to create and display view-model data with cached data, we would need to implement a caching store on the mobile application side.
The easiest way to implement this pattern would be to create simple caching store(s) for different entities that we are retrieving from the server. For instance, if we were to retrieve the details of a certain auction, we could first check that the data exists in our caching store. If the data item does not exist, we could retrieve it from the remote server and update our local ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access