A developer is integrating Amazon ElastiCache in an application.The cache will store data from a database.The cached data must populate real-time dashboards.
Which caching strategy will meet these requirements?
A read-through cache
A write-behind cache
A lazy-loading cache
A write-through cache
Explanations:
A read-through cache retrieves data from the database on cache misses, which may not meet real-time requirements.
A write-behind cache updates the cache asynchronously after a database write, which may delay real-time updates.
A lazy-loading cache only loads data into the cache when requested, potentially causing delays in real-time scenarios.
A write-through cache writes to the cache immediately on database updates, ensuring the cache has the latest data for real-time dashboards.