How it works
Amazon ElastiCache is a managed in-memory data service that supports Valkey, Redis OSS, and Memcached. Applications can use a cache to reduce database read load and improve response times. Valkey and Redis OSS support rich data structures; the features available depend on the selected engine and configuration.
When to use it
Reduce read load on a database, store sessions, build leaderboards.
Real-world example
A gaming company uses ElastiCache for Redis OSS to store query results and a leaderboard. The application retrieves data from the source database when a query result is missing from the cache.
Key facts
- Redis: Multi-AZ, Read Replicas, AOF persistence, Sorted Sets.
- Memcached: multi-node sharding, non persistent, multi-threaded.
- Patterns: Lazy Loading, Write Through, Session Store (TTL).
- Requires heavy application code changes.
Common pitfall
Assuming cached data lasts forever can cause failures when entries expire or are evicted. Handle cache misses and choose storage that meets your durability requirements.
References
Prepared by Cloud Quest. Check current behavior and limits in the AWS documentation:
Keywords you will see in SAA-C03 questions
- sub-millisecond latency
Understand it for real with 3D models and simulated labs
Connect the concept to a working architecture.