Table of Contents

  1. Amazon ElastiCache Overview
  2. Core Concepts
  3. ElastiCache Engine Comparison (Memcached vs. Redis)
  4. Memcached Specifics
  5. Redis Specifics
    1. Clustering Mode Disabled
    2. Clustering Mode Enabled
    3. Multi-AZ Failover
  6. Caching Strategies
    1. Lazy Loading
    2. Write-Through
    3. Dealing with Stale Data (TTL)
  7. Monitoring and Reporting
    1. Memcached Metrics
    2. Redis Metrics
  8. Logging and Auditing
  9. Authorization and Access Control
  10. Charges
  11. High Availability for ElastiCache
  12. Important Exam Tips & Tricks

Amazon ElastiCache Overview


Core Concepts


ElastiCache Engine Comparison (Memcached vs. Redis)

Feature Memcached Redis (General)
Complexity Simpler, no-frills. More complex data types and features.
Encryption No. Yes (in-transit and at-rest).
HIPAA Compliance No. Yes.
Multi-threading Yes (can run large nodes with multiple cores/threads). No (single-threaded).
Clustering Support Yes (for partitioning data). Yes (cluster mode enabled for sharding).
Complex Data Types No (simple key-value pairs). Yes (sorted sets, lists, hashes).
High Availability (Replication) No native replication. Yes (master/replica replication).
Multi-AZ Failover No native auto-failover. (Can place nodes in different AZs for distribution). Yes, with auto-failover.
Backup and Restore No (and no snapshots). Yes (automatic and manual snapshots to S3).
Pub/Sub Capability No. Yes.
Persistence No (purely in-memory). Yes (can be used as a persistent datastore).
Scaling Scale in/out (add/remove nodes); scale up/down (change node type). Scales by adding shards (cluster mode enabled); can add read replicas.

Key Use Cases for ElastiCache (General):


Memcached Specifics


Redis Specifics

Clustering Mode Disabled (Redis)

Clustering Mode Enabled (Redis)

Multi-AZ Failover (Redis)


Caching Strategies

Lazy Loading (Cache Aside)

Write-Through

Dealing with Stale Data – Time to Live (TTL)


Monitoring and Reporting

Memcached Metrics (CloudWatch)

Redis Metrics (CloudWatch)


Logging and Auditing


Authorization and Access Control


Charges


High Availability for ElastiCache


Important Exam Tips & Tricks