Skip to content
Ameen Abozaid
SRA-007

Large-scale performance

  • 7 Lessons
  • 3.5 h practice (estimate)
On this page 9 topics

Overview

Topics

  • Capacity forecasting
  • workload modeling
  • cost-performance optimization

Learn first

3.5 h of practice (estimate)

Learning outcomes

  1. Forecast capacity across many services from business drivers.
  2. Build workload models that represent real traffic mixes, including new products (marketplace sellers).
  3. Optimize cost and performance together (cost per transaction at target latency).
  4. Set performance budgets for teams and track them.

Lessons

  1. 01Capacity at product-area scale
  2. 02Forecasting from business drivers
  3. 03Workload modeling
  4. 04Cost-performance optimization
  5. 05Performance budgets for teams
  6. 06Demo: forecasting the marketplace launch's load
  7. 07Demo: trading 10 ms of latency for 25% lower cost

Lab and exercises

Lab

SRA-007-LAB1 · Three-year forecast

Outcomes: 1–4 · Time: ~2 h

  1. Collect business drivers for Commerce 2030: orders, sellers, listings, countries, campaigns.
  2. Measure or assume load ratios per driver and build a workload model including marketplace shapes.
  3. Produce a three-year capacity forecast with low, base, and high cases.
  4. Compute cost per order at target latency for each year and propose optimizations.
  5. Set performance budgets for three teams on the checkout path.

Acceptance: assumptions explicit; sensitivity to growth rate shown.

Exercises (case-based; six exercises)

IDOutcomeTask
SRA-007-EX011Orders double yearly. Given requests per order for six services, forecast peak requests per second for two years and identify the first bottleneck.
SRA-007-EX021Add sensitivity: show the effect of 1.5x and 3x annual growth on the forecast and on cost.
SRA-007-EX032Build a workload model for seller bulk uploads and inventory sync and state how you would validate it.
SRA-007-EX042Explain why a load test with only buyer traffic would miss risks at marketplace launch.
SRA-007-EX053Choose among three optimizations (cache, batching, right-sizing) by cost per order at target latency; justify the pick.
SRA-007-EX064Split an 800 ms checkout budget among five teams, define tracking, and describe what happens when a team exceeds its share.
Show solutions
  • EX01 Multiply orders by ratio per service, apply a peak-to-average factor and headroom; the service with the highest load-to-capacity ratio goes first, often the one that scales worst (state your numbers and assumptions).
  • EX02 Run the same model with each rate; show how the bottleneck date and capacity spend move; highlight the decision that changes first.
  • EX03 Rates by seller count and listing size, burst patterns (batch windows), payload sizes; validate with synthetic load tests, analog data from similar platforms, and early production seller data.
  • EX04 Buyer traffic is read-heavy and spread; sellers add write bursts and indexing load, shifting bottlenecks to ingestion, search indexing, and storage.
  • EX05 Compute savings and latency effect per option; pick the one with lowest cost per order meeting the target and with acceptable complexity; verify by measurement.
  • EX06 Example: gateway 50 ms, pricing 100 ms, inventory 150 ms, payment 350 ms, remaining 150 ms; dashboards per team; exceeding triggers a plan or a budget renegotiation, not blame.

Outcome 4 is also covered by the lab budgets and the quiz.

Workplace evidence: a capacity forecast used in budgeting.

Quiz

Outcomes: O1 capacity forecasting · O2 workload modeling · O3 cost-performance optimization · O4 performance budgets.

A self-check for you: nothing is graded, saved or sent anywhere. Choose an answer, then check it. You can try again as often as you like.

  1. 1Why plan capacity along the whole request path?O1
  2. 2The best basis for a three-year load forecast is:O1
  3. 3Showing low, base, and high cases is useful because:O1
  4. 4A marketplace adds which new traffic shape?O2
  5. 5Workload models are best validated by:O2
  6. 6For a new product with no history, the model should use:O2
  7. 7A common measure combining cost and performance is:O3
  8. 8Before accepting a saving that adds 10 ms latency, you should:O3
  9. 9A performance budget gives each team:O4
  10. 10A team that exceeds its budget should:O4

Practical part

Six case exercises SRA-007-EX01 to EX06 plus the lab, reviewed as a capacity forecast. Pass: at least five of six exercises correct, quiz at least 8/10, and a forecast with explicit assumptions, growth sensitivity, and cost per order at target latency per year.

Common mistakes

Linear extrapolation; ignoring new traffic shapes from new products.

Assessment

Forecast review.

Workplace evidence

A capacity forecast used in budgeting.

Career relevance

Cost architecture (ARC-021).

Type to search levels, phases, modules and lessons.