Everything I Know About Distributed Systems I Learned at Costco

A Costco run as a full distributed-systems walkthrough: the membership card is authentication, the sample station is a rate limiter, the receipt checker is egress validation, the food court is a post-commit side effect, and the casket they'll ship to your door is microservice sprawl.

Originally on MediumJune 21, 2026
Read the full post on MediumAlso on Substack

I have a PhD, I've taught distributed systems, and I've drawn the load-balancer-services-database diagram in my sleep. My point in this one: the boxes and arrows are correct but bloodless. Nobody looks at a Mermaid diagram of a rate limiter and feels what it's like to be the one getting throttled. Standing in a Costco checkout line with paper towels, a rotisserie chicken, and a kayak paddle, it clicked that I'd been walking through a distributed systems tutorial every time I went shopping.

Key takeaways

  • Membership card is authentication (you're billable), not authorization (what you can do); collapsing the two causes privilege-escalation bugs
  • Sample station is a session rate limiter, not a moral judgment: load shedding, because a service that always says yes eventually serves nothing
  • No windows or clocks is what an unobservable system feels like: monitoring alerts on predicted breaks, observability asks arbitrary questions from outside
  • Receipt checker is egress validation, the most-skipped check: does the response match the contract, not just "returned 200"
  • Food court at the exit is a post-commit side effect: primary transaction done, then billing/notification/audit fires, with no rollback if it fails
  • Also in the aisles: the always-saturated gas station, Kirkland (vendor abstraction), the $1.50 hot dog (SLA as infrastructure), returns counter (DLQ), Saturday parking lot (DNS in practice), untested tire center (DR runbook), moved paper towels (breaking change, no migration), the shippable casket (microservice sprawl)

Who this is for

Anyone who's nodded along in an architecture review at a diagram they only half understood, or needs to explain to a PM why you can't just "move the endpoint." A long, genuinely useful analogy piece.

The full walkthrough, with all thirteen concepts, is on Medium, and also on Substack.

Read the full post on Medium · Also on Substack