Shipping ItLesson 33 of 74

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

The day you run two copies

In this lesson

  • 9 min read
  • 7 reading sections
  • Knowledge check
  • Lesson 5 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

A little at a time

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

Step 1 of 8Free · no account needed
Lesson steps

The second instance breaks things the first one hid

One process is a simple world. Anything you keep in a variable is available to every request, a file written by one request is readable by the next, and a scheduled task runs once because there is one of it.

Start a second copy and every one of those assumptions stops being true. The site does not fall over; it misbehaves in ways that look like bugs in your code. This lesson is the list of what breaks, because knowing it in advance is the difference between an afternoon and a fortnight.

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 day you run two copies’, in Shipping It. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/cloud-and-shipping/scaling-out-and-the-state-problem (Accessed: 29 November 2026).