Amazon ElastiCache
What is it?
Amazon ElastiCache is a managed in-memory caching service running Redis or Memcached, so you get fast caching without operating the servers.
Explain like I'm 5
Why was it created?
Running and scaling your own cache servers is operational work. ElastiCache was created to offer managed in-memory caching on AWS.
Where is it used?
- Caching database query results
- Session storage
- Leaderboards and counters
- Speeding up read-heavy apps
Why should developers care?
Caching is a top performance technique, and ElastiCache is the standard managed option on AWS, so cloud developers use it often.
How does it work?
ElastiCache provisions and manages Redis or Memcached clusters for you — handling setup, patching, failover, and scaling. Your app reads and writes to the cache to avoid hitting slower databases repeatedly.
Real-world example
An app caches user profiles in ElastiCache (Redis) so repeated page loads skip the database, cutting latency and load.
Common use cases
- Database query caching
- Session and token storage
- Real-time leaderboards
- Reducing backend load
Advantages
- Managed in-memory caching
- Very low latency
- Handles patching and failover
- Redis or Memcached options
Disadvantages
- In-memory cost
- Cache invalidation complexity
- AWS-specific
- Data is volatile unless persisted
When should you use it?
When you need fast, managed caching on AWS to speed reads and offload databases.
When should you avoid it?
As a primary durable datastore, or for tiny apps where caching adds little.
Alternatives
Related terms
Interview questions
Beginner
- What is ElastiCache?
- What engines does it support?
Intermediate
- Why cache in front of a database?
- What does ElastiCache manage for you?
Senior
- How do you handle cache invalidation with ElastiCache?
- When would you choose Redis over Memcached?
Common misconceptions
- "ElastiCache is a database replacement" — it's a cache in front of your data, not the durable source of truth.
- "It's a new caching technology" — it runs the familiar Redis and Memcached engines, managed by AWS.
Fun facts
- It supports both Redis and Memcached as engines.
- Caching here is the same concept as Redis, just managed by AWS.
Timeline
- 2011 — Amazon ElastiCache launches
Learning resources
Quick summary
Amazon ElastiCache is managed in-memory caching (Redis or Memcached) on AWS, speeding reads and offloading databases without server upkeep.
Cheat sheet
- Managed in-memory cache
- Redis or Memcached
- Speeds reads, offloads DB
- Cache, not source of truth