Let’s Get Certified
Module 10 / 20 · Resilient cloud solutions

Scale the constrained stage of a system

Relate backlog, service rate and downstream limits to a scaling decision.

Scale the constrained stage of a system

A queue containing 5,000 jobs could be healthy or distressed. Inspect arrival rate, processing rate, oldest-message age and active workers. Backlog per active worker can be a suitable target when jobs have comparable cost. Include startup time and verify that the fleet can reach the needed size under quotas and placement constraints.

Extra consumers can amplify a bottleneck in a database or external API. Use bounded concurrency or buffering to protect the dependency and consider a cache for repeated reads where freshness permits. Separate steady-state and peak measurements. Judge the change by completed work at the required latency.

Worked case 1

Ten workers finish 20 jobs per minute while 30 arrive. How will backlog behave?

Check your reasoning

Backlog grows by ten per minute until throughput rises or arrivals fall. Check downstream capacity before adding workers and watch oldest-job age after the change.

Worked case 2

More workers increased database connection errors and reduced completed work. What should the operator adjust?

Check your reasoning

Bound concurrency or pool connections within the database’s capacity. Inspect wait and completion metrics before another scale-out.

Scale an EC2 fleet from an SQS backlog

Official DOP-C02 skills for this topic

Related lesson in AWS Certified CloudOps Engineer – Associate. Scale on demand that the fleet can serve.

Following scaling across two layers

An ECS service raises its desired task count, but tasks remain pending when its EC2 capacity provider lacks room. An EKS workload likewise needs both schedulable pods and available nodes. Compare those paths with a Lambda consumer constrained by reserved concurrency, then check whether the database can accept the added traffic.

Practice with the recording

A queue has twice as many messages after a marketing campaign, but the worker fleet is also twice as large. Should the target-tracking policy scale again?

Check your reasoning

Calculate visible backlog per in-service worker and compare it with the target derived from acceptable wait time and processing rate. Also watch the oldest message. A raw queue count alone cannot show whether the fleet is keeping up.

sthithapragna · DOP-C02 full course · 3:41:57

Knowledge check

Scale the constrained stage of a system quiz

Answer 3 questions. Check each answer for an explanation.