The cache-aside pattern
As mentioned previously, increased performance generally means minimizing the time it takes to read data. One way to do this is through the cache-aside pattern.
The cache-aside pattern is a pattern that loads data into a cache from a data store on demand. It also updates data to the data store if the application updates any data cache. The data is loaded into the cache if the user requests it and it is not available. So, when next accessing this data, the application will read from the cache and respond to the user. This pattern helps us to maintain consistency between data in the cache and the data store. A cache is another data source that maintains copies of data from the original data store, permitting the application ...
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