Caching with Amazon ElastiCache and DAX
Learn how in-memory caching reduces latency and database load for Lambda functions using ElastiCache (Redis) and DynamoDB Accelerator (DAX).
Why Cache?
Reading from a database on every invocation is slow and expensive. A cache keeps hot data in memory so repeated reads are near-instant.
Two AWS Cache Options
Two managed caches pair well with Lambda:
- ElastiCache (Redis or Memcached) for general key-value caching.
- DAX, a cache built specifically for DynamoDB.
All lessons in this course
- Integrating with DynamoDB
- S3 for File Storage and Events
- Choosing the Right Data Store
- Caching with Amazon ElastiCache and DAX