Lab
Three labs. Real failure modes, explicit trade-offs and systems you can break in the browser.
-
Architecture Simulator
System design · load, cost & resilience
- 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
- Pick a template and set traffic and the read/write mix.
- Toggle CDN, cache, queue and replicas.
- Inject chaos: spikes, slow queries, outages.
- 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.
-
AI Software Factory
Engineering process · AI agents with human gates
- 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
- A spec with written acceptance criteria.
- Agents read the architecture and conventions first.
- The builder writes a failing test, then the code.
- Four independent reviewers, clean context, different models.
- 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.
-
The Order That Charged Twice
Checkout · payments & messaging
- 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
- Break it: lost responses, duplicate deliveries, crashes.
- Watch the invariants and the ledger diverge.
- Protect it with idempotency keys, outbox, sagas and a DLQ.
- 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.