Shipping ItLesson 32 of 74

Module 4 · Load, cost and the traffic that is not customers

Finding your ceiling before your users do

In this lesson

  • 10 min read
  • 7 reading sections
  • Knowledge check
  • Lesson 4 of 10 in this chapter

This chapter’s goalFind your first real ceiling with a load test and raise it using caching, pooling or a queue, without raising the bill.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available
The knee: throughput stops rising, the queue does not025050010400concurrent clients in the load testrequests per second served—— ThroughputPast about a hundred concurrent clients this service adds no throughput at all. Every extra clientonly lengthens the queue, so p99 latency at 400 clients was eight times the figure at 50. Shed loadthere rather than queue it.
Past about a hundred concurrent clients this service adds no throughput at all. Every extra client only lengthens the queue, so p99 latency at 400 clients was eight times the figure at 50. Shed load there rather than queue it.

Figure

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 8Free · no account needed
Lesson steps

Guessing is the norm and it is always wrong

Ask most people what their app can handle and you get a shrug or a number from a blog post. Both are worthless because the answer depends on your queries, your data volume and your pool sizes.

It takes about an hour to find out for real.

The tools are free

  • k6: write the scenario in JavaScript, run one binary. The best default.
  • oha and hey: one command, immediate answer, good for a single endpoint.
  • wrk: very high throughput from one machine.
  • Locust: Python, good for complex user journeys.
Bash
oha -z 60s -c 50 https://staging.example.com/search?q=chair

Fifty concurrent connections for sixty seconds. Note it points at staging. Load-testing production is occasionally right, but do it deliberately, at a quiet hour, with a plan for stopping.

Run the same test at increasing concurrency (10, 25, 50, 100, 200) and record throughput and p99 latency at each step. That table is your capacity curve.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Agents and Automation exam.

Stuck on something?Ask Tri, your AI tutor

How to cite: Addaly (2026) ‘Finding your ceiling before your users do’, in Shipping It. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/cloud-and-shipping/where-it-falls-over (Accessed: 29 November 2026).