Lab / Interactive case studies

Fewer slides.
More systems.

Three labs. Real failure modes, explicit trade-offs and systems you can break in the browser.

Interactive · runs in your browser · no sign-up

  1. FIG. 01Architecture / Trade-offs

    System design · load, cost & resilienceCase / 01

    Architecture Simulator

    live
    What you do
    Configure a web system, push traffic at it and break components on purpose.
    What you learn
    How each component moves latency, availability, cost and complexity at the same time.
    • CDN
    • Redis cache
    • Message queue
    • Read replicas
    • Chaos testing
    open lab →
    Inside the lab

    The problem

    Architecture debates usually happen on whiteboards, where nothing ever saturates. The cost of a cache or a replica stays abstract until production.

    How it works

    1. Pick a template and set traffic and the read/write mix.
    2. Toggle CDN, cache, queue and replicas.
    3. Inject chaos: spikes, slow queries, outages.
    4. Read latency, throughput, SLA, cost and complexity side by side.

    The decisions

    • A heuristic model, honest about being conceptual, instead of a fake benchmark.
    • Every metric shown together, so no improvement looks free.
    • Chaos next to the config: resilience is part of the design.
  2. FIG. 02AI / Agent orchestration

    Engineering process · AI agents with human gatesCase / 02

    AI Software Factory

    live
    What you do
    Follow a request through spec, build, parallel reviews and approval.
    What you learn
    Where agents can work alone and where a human has to sign off.
    • AI agents
    • Spec-driven
    • TDD
    • Multi-model review
    • Hooks
    • Risk gates
    open lab →
    Inside the lab

    The problem

    AI agents write code fast, but speed without control produces changes nobody can audit or trust.

    How it works

    1. A spec with written acceptance criteria.
    2. Agents read the architecture and conventions first.
    3. The builder writes a failing test, then the code.
    4. Four independent reviewers, clean context, different models.
    5. A gate agent merges low-risk changes and stops risky ones at a PR.

    The decisions

    • Different models review the work, so the author's model doesn't grade itself.
    • Backend, core logic or database changes always reach a human.
    • Every step leaves a trace you can inspect.
  3. FIG. 03Distributed systems / Failure modes

    Checkout · payments & messagingCase / 03

    The Order That Charged Twice

    live
    What you do
    Break a distributed checkout with lost responses, duplicates and crashes.
    What you learn
    What idempotency, outbox, sagas and dead-letter queues fix, and what each one costs.
    • Idempotency
    • Outbox
    • Sagas
    • Dead-letter queue
    • At-least-once
    open lab →
    Inside the lab

    The problem

    A retry after a timeout repeats an action that may already have happened. The safe-looking fix is what charges the customer twice.

    How it works

    1. Break it: lost responses, duplicate deliveries, crashes.
    2. Watch the invariants and the ledger diverge.
    3. Protect it with idempotency keys, outbox, sagas and a DLQ.
    4. Compare the trace and the cost at scale.

    The decisions

    • No exactly-once: consumers that recognise repeats.
    • Save and publish as one unit through an outbox.
    • Failure paths designed as features, including what the customer sees.
    • Only the patterns your failure modes justify.

More labs coming soon.