A cache is a component that stores portions of data that would otherwise either take a long time to calculate/process. Caches may also originate from another underlying backend system, where caching is used to prevent additional requests for round trips for frequently used data. Caching can be used to improve performance or reduce application latencies in both these cases.
A cache hit means the data required for the request is in the cache and is served from the cache.
A cache miss means the data required for the request is not in the cache and would need to be computed by the backend systems.
In this strategy, the cache has a writer component that can write to database.
The cache is configured with a loader component that loads data from the database.
View all Courses