
Answer-first summary for fast verification
Answer: Use a caching strategy to write to the backend first and then invalidate the cache
Overall explanation Correct option: Amazon ElastiCache allows you to seamlessly set up, run, and scale popular open-Source compatible in-memory data stores in the cloud. Build data-intensive apps or boost the performance of your existing databases by retrieving data from high throughput and low latency in-memory data stores. Amazon ElastiCache is a popular choice for real-time use cases like Caching, Session Stores, Gaming, Geospatial Services, Real-Time Analytics, and Queuing. Broadly, you can set up two types of caching strategies: Lazy Loading Write-Through
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
The development team at an e-commerce company is gearing up for the forthcoming Thanksgiving sale, which is expected to generate significant traffic spikes on the website. The product manager has tasked the team with implementing a robust caching strategy using Amazon ElastiCache to ensure the website can handle the increased load. A crucial aspect of this task is to ensure that product prices and descriptions are consistently updated in the cache, maintaining synchronization with the backend database at all times.
As a Developer Associate, which solution would you recommend to address this use-case?
A
Use a caching strategy to write to the cache directly and sync the backend at a later time
B
Use a caching strategy to write to the backend first and wait for the cache to expire via TTL
C
Use a caching strategy to write to the backend first and then invalidate the cache
D
Use a caching strategy to update the cache and the backend at the same time
No comments yet.