System Design Interview, Technology, Coding, Programming.
Risk of data loss if the cache fails before the database is updated. 4. Refresh-ahead: The cache is configured to automatically refresh data before it expires. Pros: Reduces the chance of cache misses. Cons: Might lead to unnecessary data updates if the data is not requested frequently. For more