Amazon ElastiCache
Amazon ElastiCache is a managed in-memory cache service based on Redis or Memcached. It accelerates applications by storing frequently required data in the working memory.
What is Amazon ElastiCache?
Amazon ElastiCache is AWS’s managed in-memory data store. Instead of repeatedly reading frequently accessed data from a database, it is cached in memory and delivered from there in fractions of a millisecond. This reduces the load on the database and noticeably speeds up the application.
ElastiCache is based on two established open-source technologies: Redis (or the compatible Valkey) and Memcached. AWS handles provisioning, patches, monitoring and failover, so your team can use the cache without having to manage it themselves.
Typical use cases
- Database caching: Results of complex database queries are cached and do not need to be recalculated for every request.
- Session storage: User login sessions are stored centrally in the cache, allowing multiple application servers to access them.
- Queues and counters: Redis is suitable for rate limiting, leaderboards and simple message queues.
- Relief during peak loads: The cache absorbs access spikes before they reach the database.
Redis or Memcached?
ElastiCache offers both engines. Memcached is a deliberately simple, purely volatile cache that scales well horizontally. Redis is significantly more feature-rich: it supports complex data structures, can optionally persist data, and supports replication and failover. For most modern applications, Redis is the more versatile choice; Memcached is suitable for pure, simple caching tasks.
Availability
With Redis, replicas can be distributed across multiple Availability Zones. If the primary node fails, a replica automatically takes over. This ensures the cache remains available even if a single data centre goes down – which is important if the application relies heavily on the cache.
ElastiCache for SMEs
A cache is often the most effective single measure for speeding up a slow application. If page loads are noticeably sluggish or the database is reaching its limits under load, ElastiCache provides rapid relief. It is important to have a well-thought-out strategy for when cache entries become invalid – so that users do not see out-of-date data. It is precisely this invalidation logic that is the most challenging part of any caching architecture.
Frequently asked questions about Amazon ElastiCache
The costs depend on the node type and number of nodes. A small Redis node in Frankfurt costs around USD 15-40 per month. For high availability with replicas across several availability zones, the costs increase according to the number of nodes.
Memcached is a simple, purely volatile cache that scales well horizontally. Redis offers complex data structures, optional persistence, replication and failover. Redis is the more versatile choice, Memcached is suitable for simple caching tasks.
Yes, as long as the application frequently reads the same data. The cache delivers this data from the main memory in fractions of a millisecond and reduces the load on the database. For database-heavy applications, a cache is often the most effective single performance measure.
No. ElastiCache is a supplementary layer before the database, not a replacement. The database remains the reliable source of truth, the cache only holds a quick copy of frequently required data.
Related terms
Related services
Last updated: May 2026