What is Amazon ElastiCache and why do applications use it?
Short answer
Amazon ElastiCache is a fully managed in memory caching service that supports both the Redis and Memcached engines, letting applications store frequently accessed data in extremely fast memory instead of repeatedly querying a slower disk based database, which significantly…
Advertisement
AModel answer
Amazon ElastiCache is a fully managed in memory caching service that supports both the Redis and Memcached engines, letting applications store frequently accessed data in extremely fast memory instead of repeatedly querying a slower disk based database, which significantly reduces latency and takes load off your primary database for read heavy workloads.
Example
aws elasticache create-cache-cluster --cache-cluster-id my-cache --engine redis --cache-node-type cache.t3.micro --num-cache-nodes 1
Real-world example
An online store caches its frequently viewed product details in ElastiCache, so repeat requests for the same popular items are served in milliseconds without needing to query the main database every single time.
Likely follow-ups
- What is the difference between Redis and Memcached engines?
- When should an application use caching versus querying the database directly?
Related topics