Shipping ItLesson 30 of 74

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

The request you never serve

In this lesson

  • 9 min read
  • 8 reading sections
  • Knowledge check
  • Lesson 2 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
Four places a response can be cachedBrowserfree, closest to the user, and you cannot clear itCDNshared across users, purgeable, nearby; s-maxage andstale-while-revalidate live hereYour applicationRedis, Valkey or an in-process map for computedresults and rowsThe databaseits own page cache, which you influence but do notcontrolKeep the answer near whoever asks next. Most of the win is at the CDN, where one copy serves everybodyfor sixty seconds and the origin sees one request a minute instead of six thousand.
Keep the answer near whoever asks next. Most of the win is at the CDN, where one copy serves everybody for sixty seconds and the origin sees one request a minute instead of six thousand.

Figure

A little at a time

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

Step 1 of 9Free · no account needed
Lesson steps

The arithmetic

A page gets 100 requests a second. You cache it at the CDN for 60 seconds. Your origin now serves one request a minute instead of 6,000. That is a 99.98% reduction, achieved with one header, on hardware you already pay for.

No amount of code optimisation competes with not running the code. Caching is the first thing to reach for when load or cost is the problem, and it is the thing most people reach for fourth.

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) ‘The request you never serve’, in Shipping It. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/cloud-and-shipping/caching-the-cheapest-server (Accessed: 29 November 2026).