1. Amazon CloudFront

Global CDN that accelerates downloads by caching objects at edge locations (PoPs) backed by regional edge caches before reaching the origin (S3, ALB, MediaPackage, custom HTTP endpoints).

cloudfront-private-content
🧩 CloudFront signed-cookie flow

1.1 Private Content & Security

cloudfront-sni
🧩 CloudFront SNI flow

1.2 Distribution Building Blocks

1.3 Caching Controls

1.4 Lambda@Edge


2. Amazon ElastiCache

Managed in-memory caching service offering Redis and Memcached clusters to offload read-heavy workloads, session data, and transient state from databases.

2.1 General Characteristics

2.2 Memcached vs Redis

Feature Memcached Redis
Data types Strings only. Strings, lists, hashes, sets, sorted sets, bitmaps, geospatial.
Replication/HA None (client-side sharding only). Multi-AZ replication with automatic failover.
Persistence None. Snapshots + append-only file (AOF) backups.
Threading Multi-threaded per node. Single-threaded per shard (cluster handles parallelism).
Use cases Simple caches, horizontal sharding, minimal features. Leaderboards, session stores, distributed locks, queues, richer data processing.


Contents