The Real Fullstack

Distributed Systems

Idempotency, outbox, ordering, dead letters, lag and sagas.

9 challenges

E25The Duplicate PaymentA timeout and a well-meant retry charge a customer twice.Flow simulatorEngineer10 minE26The Missing EventOrders exist in the database that the shipping service never heard about.Flow simulatorSenior Engineer10 minE27The Out-of-Order DeliveryCancelled orders get shipped because “cancelled” arrived before “paid”.Flow simulatorEngineer8 minE28The Poison MessageOne malformed message stops every order behind it.Timeline simulatorEngineer7 minE29The Growing Kafka LagConsumer lag grows all day. Doubling the consumers changes nothing.Performance labSenior Engineer9 minE30The Broken SagaA failed shipment refunds the customer twice and tells them before it happens.Timeline simulatorArchitect10 minE69The Split-Brain SchedulerTwo schedulers both believe they are the leader, and customers get two invoices.Debugging labSenior Engineer10 minE70Last Write Wins (Somebody Else's)Notes edited on two devices silently overwrite each other based on device clocks.Timeline simulatorSenior Engineer9 minE85The Rebalance StormConsumers that take too long between polls get kicked out of the group, over and over.Debugging labSenior Engineer9 min