Skill 2.5.3

Applying design patterns to meet performance objectives with caching, buffering, and replicas

Key Concepts

Caching: CloudFront (static and dynamic), API Gateway cache, ElastiCache (lazy loading, write-through, TTLs), DAX. Buffering: SQS and Kinesis smooth bursts and protect databases. Replicas: Aurora replicas behind a reader endpoint, RDS read replicas, DynamoDB global tables, cross-Region read replicas for local reads.

Watch consistency trade-offs: caches and replicas can serve stale data; invalidate or use TTLs, and route strongly consistent reads to the primary.