
Answer-first summary for fast verification
Answer: Use a Write Through strategy
Use a Write Through strategy The write-through strategy adds data or updates data in the cache whenever data is written to the database. In a Write Through strategy, any new blog or update to the blog will be written to both the database layer and the caching layer, thus ensuring that the latest data is always served from the cache.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
You are managing a web application that allows users to write blogs and share them with their followers. The majority of operations involve reading data, but when a blog post is modified, it is essential to serve the most current data to users, ensuring no stale information is presented. The development team has proposed using Amazon ElastiCache to handle the read load. Your task is to implement a caching strategy that meets the application's requirements.
Which caching strategy would you recommend?
A
Use DAX
B
Use a Write Through strategy
C
Use a Lazy Loading strategy without TTL
D
Use a Lazy Loading strategy with TTL