DVA-C02

Introduction to Amazon ElastiCache

Managed in-memory caching with Valkey, Redis OSS or Memcached.

  • 1 lesson
  • Module quiz

Many applications read the same data again and again, such as product details, user sessions or the results of expensive queries. Reading it from a database each time adds latency and load, and the database may become the bottleneck as traffic grows.

Amazon ElastiCache is a managed in-memory data store compatible with Valkey, Redis OSS and Memcached. Keeping frequently read data in memory gives response times measured in microseconds and takes load off the database. ElastiCache runs inside a VPC and is charged per node-hour, or per gigabyte stored and per request for ElastiCache Serverless.

Where ElastiCache fits

A cache contains a copy of data, so the main design question is how the copy is kept up to date. The exam tests the caching strategies and their trade-offs: lazy loading, which fills the cache only when data is requested, write-through, which updates the cache whenever data is written, and time-to-live (TTL) values, which limit how long stale data can remain. For caching DynamoDB reads specifically, DynamoDB Accelerator (DAX) is the alternative that requires only minimal code changes.

How this module is organised

The module has a single lesson, Choosing Caching Strategies and Engines for Amazon ElastiCache, which explains the caching strategies, TTLs and eviction, the differences between the engines, and common uses such as session storage.

  1. Choosing Caching Strategies and Engines for Amazon ElastiCache Lesson 1
  2. Practise and review
  3. Test your knowledge 6 questions