ladderlore
  • S3 や IAM などのサービス名を入力してください。

サービス · データベース

Amazon ElastiCache

A managed in-memory cache that answers in microseconds and takes load off your database.

このレッスンはまだ翻訳されていないため、英語で表示しています。

ユーザー
アプリケーション
ElastiCache
RDS
  1. 1A user asks for data, such as a product page.
  2. 2The application checks ElastiCache first. If the data is there, it comes back in microseconds.
  3. 3If it is not there, the application reads the database in Amazon Relational Database Service (Amazon RDS) and stores a copy in ElastiCache for the next request.
The application checks the cache first, and goes to the database only when it must.

流れ

  1. 1A user asks for data, such as a product page.
  2. 2The application checks ElastiCache first. If the data is there, it comes back in microseconds.
  3. 3If it is not there, the application reads the database in Amazon Relational Database Service (Amazon RDS) and stores a copy in ElastiCache for the next request.
  • Database caching

    Keep the results of slow or frequent queries in memory, so the database does less work.

  • Session store

    Keep short-lived user data, such as sign-in state, close to the application.

  • Leaderboards

    Keep game scores sorted in real time, even with many players.

Three common uses of ElastiCache.

概要

Amazon ElastiCache is a fully managed, in-memory data store and cache. It is compatible with Valkey, Redis OSS and Memcached. Because data is held in memory instead of on disk, reads take microseconds.

The most common use is a cache in front of a database. The application asks ElastiCache first. If the data is there, it comes back at once and the database does no work. If not, the application reads the database and saves a copy in the cache for next time.

You can create a serverless cache, which scales by itself with no capacity planning, or choose the type and number of nodes yourself.

覚えること

  • In-memory: microsecond reads.
  • Engines: Valkey, Redis OSS and Memcached.
  • Common uses: database caching, session stores and gaming leaderboards.
  • A cache holds copies of data. The database still keeps the main copy.
  • Serverless option: no nodes to size, and it scales automatically.

試験では

  • “Improve read performance and reduce database load with an in-memory cache” points to Amazon ElastiCache.
  • “Sub-millisecond response for session data or leaderboards” points to ElastiCache.
  • “Cache website content at edge locations near users” is Amazon CloudFront, not ElastiCache.