November 2018
Beginner to intermediate
260 pages
6h 12m
English
In the read-through and write-through strategy, the application doesn't talk to the persistence storage, it interacts with the cache. The cache is responsible for updating the persistence storage.
Read-through is when the application needs a value, it looks it up in the cache; if the value is present in the cache, then that value is returned; otherwise, the cache looks up the persistence storage, updates the cache, and returns the value.
Write-through is when the application needs to update a value, it updates the cache and the cache updates the persistence storage. The write performance is slow as the writing thread waits for the persistence storage and cache updates:
Read-through and write-through offer the ...
Read now
Unlock full access