Shipping / 1 / 2
Testing
A small shop ships every change straight to customers, and customers find the bugs. We add tests layer by layer, see what each layer catches and misses, and make CI the gate before deploy.
- 12 min
- Beginner
- 11 steps
- Bugs that reached customers
- 9
- CI run time
- 0 s
- Flaky runs
- 0 %
- request
- reply
- redelivery
- duplicate
- lost
Numbers are a model scenario, not measurements
The real request
Customer → Orders serviceRequest
POST /orders HTTP/1.1
{
"sku": "sku_77",
"qty": 2,
"promo": 1"AUTUMN10"
}
Response
HTTP/1.1 201 Created
{
"subtotal": 225800,
"discount": 32580,
"total": 42580
}
promo— A 10% discount code. The changed code path.subtotal— Two items at 12 900. Correct.discount— 10% of the subtotal. Also correct.total— Should be subtotal minus discount. The code returned the discount itself.
Course: 42 lessons
01 Foundations
02 Scaling
03 Data & storage
04 Communication
05 Reliability
06 Architecture
07 Security
08 Shipping
09 Whole systems
10 Business processes