Idea · Sep 3, 2026
Chaos Tester's Toolkit
Students build a three-node HTTP key-value store, then implement a deterministic chaos testing harness that kills nodes, delays messages, and partitions the network. They observe real CAP theorem trade-offs in their own system and write a failure mode postmortem.
What it would do
Distributed systems theory is easy to read and hard to believe until your own code breaks in front of you. In this three to four week assignment, student pairs build a minimal key-value store (put/get/delete over HTTP) replicated across three nodes using a simple quorum protocol. They then implement a chaos testing harness that injects three adversarial scenarios deterministically: sudden node termination, configurable message delay, and a hard network partition splitting nodes into two groups. A React dashboard visualizes node health, write propagation, and data divergence in real time as chaos events fire. Students run at least five pre-specified scenarios, record what consistency guarantees broke and which survived, compare against their pre-experiment predictions, and write a 2-3 page failure mode postmortem structured like a production incident report. A stretch goal adds leader election so the system can recover from a partition. The assignment teaches fault-tolerant systems design, HTTP programming, CAP theorem, and technical writing through hands-on experimentation with their own code rather than a textbook case study.
Key features
- Scaffold: 3-node HTTP key-value store with a simple read-repair quorum protocol and configurable replication factor
- Chaos harness with three injectable failure modes: node kill, message delay (configurable milliseconds), and network partition by node group
- Real-time React dashboard showing node health, per-node key-value state, write propagation lag, and partition event log
- 5 pre-specified adversarial scenario scripts that students run and annotate with observed vs. predicted behavior
- Structured failure mode postmortem template (incident summary, timeline, root cause, CAP analysis, what changed after recovery)
- Stretch goal: Raft-style leader election so the majority partition re-elects a leader and resumes writes