In-memory Caches
An in-memory cache removes the performance delays when an application built on a disk-based database must retrieve data from a disk before processing. Reading data from memory is faster than from the disk. In-memory caching avoids latency and improves online application performance.
CDN
A content delivery network (CDN) is a geographically distributed group of servers that caches content close to end users. A CDN allows for the quick transfer of assets needed for loading Internet content, including HTML pages, JavaScript files, stylesheets, images, and videos.
Cache Invalidation
Cache invalidation is the process of invalidating cache by removing data from a system’s cache when that data is no longer valid or useful. When a change is made to the original data, such as updating profile information, the corresponding cached files should be invalidated to ensure that the updated data is reflected.
Write-through Cache
Write-through is a storage method in which data is written into the cache and the corresponding main memory location at the same time. This is used when there are no frequent writes to the cache.
Write-back Cache
Write-back cache is a method where write operations to the cache are not immediately reflected on the main memory. Instead, the cache marks the modified data as dirty and updates the main memory only when the cache line is replaced or evicted. It prioritizes immediate response to the write operation, deferring the actual storage write to a later, more opportune time.
Cache Hit Ratio
Cache hit rate, known also as cache hit ratio, is a measure of the effectiveness of a cache, which is a temporary storage area for frequently accessed data. The cache hit rate is the percentage of requests for data that can be served by the cache, rather than having to be retrieved from the origin server.
Cache Hit Ratio Formula: {Cache Hits / (Cache Hits + Cache Misses)} * 100%
Comments
Post a Comment