Tinker Replication & consistency

by Samy (Kondasamy Jayaraman) · drawn with Colorfigures by April Zhu

10:16. Every warehouse sells from its own count.North 2/0, East 3/0, West 3/0 · 1 sale

Chapter 2 of 7

Two buyers, one hinge

The copies catch up within minutes, and Larkspur is happy. Then the hinges run low, and two customers in two regions want the last one.

This chapter: What happens when two warehouses sell the last unit at the same moment?

About this chapter

You will learn

  • Concurrent orders each read the count before either writes
  • How the last unit gets two receipts
  • Why waiting for news doesn’t help

Words you’ll meet

Concurrent
Happening at the same time, so neither knows about the other.
Oversold
More units sold than there were: a promise the shop can’t keep.

Step 1 of 5

East sells a hinge at 10:20, leaving one. The news reaches the others two minutes later.

Move the clock to 10:20.