teluzia.Cloud Engineer · Day 80
CHAPTER 12 · AWS ARCHITECTURE & CERTIFICATION READINESS

High-performing architectures

4–5 hours including independent practice3 topics
LET’S MAKE THIS SIMPLE

What you’re learning today

Performance design is choosing the right conveyor belts and storage shelves for a measured workload, not simply buying the largest machine. Choose compute from workload characteristics such as CPU, memory, concurrency, duration, and startup requirements. Measure latency distributions and throughput under representative load. Average latency can hide slow tail requests, while scaling may expose database or dependency bottlenecks rather than fix them. Caches reduce repeated work when reuse and invalidation rules fit the data. Edge delivery helps distribute cacheable content closer to clients. Cache keys, TTLs, and authorization boundaries matter because a fast incorrect or leaked response is still a failure.

Think of it this way

Performance design is choosing the right conveyor belts and storage shelves for a measured workload, not simply buying the largest machine.

TOPIC 01 / 03Step by step

Compute fit and measurement

Choose compute from workload characteristics such as CPU, memory, concurrency, duration, and startup requirements. Measure latency distributions and throughput under representative load. Average latency can hide slow tail requests, while scaling may expose database or dependency bottlenecks rather than fix them. For example, a memory-heavy workload may benefit from memory-optimized instances, but evidence from profiling is stronger than guessing from one slow request.

WORKED EXAMPLE
A memory-heavy workload may benefit from memory-optimized instances, but evidence from profiling is stronger than guessing from one slow request.

A service's average response time is acceptable, but one in twenty requests takes several seconds. Measure the latency distribution and identify whether time is spent on CPU, memory pressure, storage, network, or a dependency. Increasing instance size may help CPU-bound work while doing little for an unindexed database query. Compare representative workloads before and after a change.

Throughput is completed work per unit time. Latency is the duration of one operation. A percentile such as p95 describes a point below which approximately ninety-five percent of observed durations fall. Tail behavior matters to users and dependent services. Profiling attributes resource consumption or waiting to specific operations. Choose compute from measured requirements and scaling characteristics, not price alone. A benchmark with warm caches and tiny data may misrepresent production. Record inputs, concurrency, dataset, and errors so an apparent improvement cannot be explained merely by doing less work or rejecting more requests.

Why this matters

A memory-heavy workload may benefit from memory-optimized instances, but evidence from profiling is stronger than guessing from one slow request.

A common trap

Do not overlook this operational distinction: Average latency can hide slow tail requests, while scaling may expose database or dependency bottlenecks rather than fix them.

Read all topics in this lesson

A complete reference to revisit alongside the guided steps above.

Compute fit and measurement

Choose compute from workload characteristics such as CPU, memory, concurrency, duration, and startup requirements. Measure latency distributions and throughput under representative load. Average latency can hide slow tail requests, while scaling may expose database or dependency bottlenecks rather than fix them. For example, a memory-heavy workload may benefit from memory-optimized instances, but evidence from profiling is stronger than guessing from one slow request.

WORKED EXAMPLE
A memory-heavy workload may benefit from memory-optimized instances, but evidence from profiling is stronger than guessing from one slow request.

A service's average response time is acceptable, but one in twenty requests takes several seconds. Measure the latency distribution and identify whether time is spent on CPU, memory pressure, storage, network, or a dependency. Increasing instance size may help CPU-bound work while doing little for an unindexed database query. Compare representative workloads before and after a change.

Throughput is completed work per unit time. Latency is the duration of one operation. A percentile such as p95 describes a point below which approximately ninety-five percent of observed durations fall. Tail behavior matters to users and dependent services. Profiling attributes resource consumption or waiting to specific operations. Choose compute from measured requirements and scaling characteristics, not price alone. A benchmark with warm caches and tiny data may misrepresent production. Record inputs, concurrency, dataset, and errors so an apparent improvement cannot be explained merely by doing less work or rejecting more requests.

Why this matters

A memory-heavy workload may benefit from memory-optimized instances, but evidence from profiling is stronger than guessing from one slow request.

A common trap

Do not overlook this operational distinction: Average latency can hide slow tail requests, while scaling may expose database or dependency bottlenecks rather than fix them.

Caching and content delivery

Caches reduce repeated work when reuse and invalidation rules fit the data. Edge delivery helps distribute cacheable content closer to clients. Cache keys, TTLs, and authorization boundaries matter because a fast incorrect or leaked response is still a failure. For example, cache public product images at the edge, but prevent personalized account responses from sharing a public cache key.

WORKED EXAMPLE
Cache public product images at the edge, but prevent personalized account responses from sharing a public cache key.

A client requests a static stylesheet from an edge cache. A hit returns the stored representation without invoking the application's origin. A miss fetches it from the origin and may populate the cache according to policy. Changing a versioned asset URL can safely select new content, while invalidation is another mechanism for replacing stale content when needed.

A cache hit finds a reusable stored response. TTL limits its freshness period. A cache key determines which requests share that response. Include dimensions such as relevant query parameters or authorization isolation where the content requires them. Otherwise, a fast shared response can be incorrect or leak private data. Caching is valuable when requests reuse content, but less useful for unique expensive writes. Measure hit ratio and origin load alongside latency. A stale permitted object can remain accessible according to cache policy even after its origin changes, so freshness and security requirements must shape cache behavior together.

Why this matters

Cache public product images at the edge, but prevent personalized account responses from sharing a public cache key.

A common trap

Do not overlook this operational distinction: Cache keys, TTLs, and authorization boundaries matter because a fast incorrect or leaked response is still a failure.

Storage and database access patterns

Storage choices depend on object, block, file, relational, or key-value access requirements. Indexes and data models should match queries. Read replicas can help read-heavy workloads but may return replicated data with lag; they are not a universal write-scaling solution. For example, a large static video belongs in object storage, while transactional order updates require a data model supporting the necessary consistency rules.

WORKED EXAMPLE
A large static video belongs in object storage, while transactional order updates require a data model supporting the necessary consistency rules.

An orders service asks for all orders placed by a customer in the last month. A relational index suited to customer and date can avoid scanning unrelated rows. A key-value model may instead require an access-pattern-specific key design. Sending the same broad query to a different storage service does not automatically make it efficient.

An access pattern is the way the application reads and writes data. An index provides another structure for locating records. A read replica serves replicated reads according to the database's consistency behavior, often with possible lag. Read replicas reduce some read pressure but do not solve a write bottleneck or guarantee immediate visibility of a recent write. Storage choices should follow object, block, file, transaction, and query requirements. Model the full path, including dataset size and concurrency. A fast demonstration over ten rows is weak evidence for a design that must serve millions of records under sustained load.

Why this matters

A large static video belongs in object storage, while transactional order updates require a data model supporting the necessary consistency rules.

A common trap

Do not overlook this operational distinction: Read replicas can help read-heavy workloads but may return replicated data with lag; they are not a universal write-scaling solution.

KEEP THESE WITH YOU

Today’s takeaways

Compute fit and measurement: Choose compute from workload characteristics such as CPU, memory, concurrency, duration, and startup requirements. Measure latency distributions and throughput under representative load. Average latency can hide slow tail requests, while scaling may expose database or dependency bottlenecks rather than fix them.

Caching and content delivery: Caches reduce repeated work when reuse and invalidation rules fit the data. Edge delivery helps distribute cacheable content closer to clients. Cache keys, TTLs, and authorization boundaries matter because a fast incorrect or leaked response is still a failure.

Storage and database access patterns: Storage choices depend on object, block, file, relational, or key-value access requirements. Indexes and data models should match queries. Read replicas can help read-heavy workloads but may return replicated data with lag; they are not a universal write-scaling solution.

CLOSE THE LOOP

Ready to complete this day?

Verify the practical steps and pass the knowledge check (at least two thirds correct).

Lab steps verifiedKnowledge check passed