Skip to main content

Module 3: Replication & Partitioning: Mistake Clinic

This clinic turns wrong moves into reusable judgment. Use it after each practice page and again before the quiz or checkpoint.


Module-Specific Mistake Radar

Start with these traps. Replace or extend them with real mistakes from your own work.

Mistake to look forWhere it shows upSymptomRepair evidence
Finishing Replication Topologies Lab with only a final answerReplication Topologies LabThe work has no failed case, trace, test, proof gap, or design stress point.Add the smallest broken example and show the repair that changes the result.
Finishing Partitioning and Rebalancing Workshop with only a final answerPartitioning and Rebalancing WorkshopThe work has no failed case, trace, test, proof gap, or design stress point.Add the smallest broken example and show the repair that changes the result.
Finishing Replication Anomalies Clinic with only a final answerReplication Anomalies ClinicThe work has no failed case, trace, test, proof gap, or design stress point.Add the smallest broken example and show the repair that changes the result.
Finishing Code Katas with only a final answerCode KatasThe work has no failed case, trace, test, proof gap, or design stress point.Add the smallest broken example and show the repair that changes the result.
Treating Replication Goals: Availability, Throughput, Geolocation as vocabulary instead of a toolReplication Goals: Availability, Throughput, GeolocationThe explanation names the concept but cannot decide between two cases.Write one example, one non-example, and the rule that separates them.
Treating Partitioning Goals: Scaling Beyond One Node as vocabulary instead of a toolPartitioning Goals: Scaling Beyond One NodeThe explanation names the concept but cannot decide between two cases.Write one example, one non-example, and the rule that separates them.

Practice Mistake Checks

Pull any miss from these checks into your mistake log.

Replication Topologies Lab

Source: practice/01-replication-topologies-lab.md

For each statement, explain why it is wrong:

  1. "Multi-leader is just single-leader that has been doubled, so it's easier to reason about."
  2. "W + R > N means strong consistency."
  3. "Failover is a property of the topology."
  4. "Leaderless replication cannot lose writes because every node has a copy."
  5. "Ring topology is safe because messages always go the same direction."

Partitioning and Rebalancing Workshop

Source: practice/02-partitioning-and-rebalancing-workshop.md

  1. "Hash on user_id avoids all hotspots."
  2. "Range on timestamp is fine; we have lots of partitions."
  3. "We can always add a shard later if load grows."
  4. "Global secondary indexes are fast, so use them everywhere."
  5. "A fixed partition count of 32 will be enough forever."

Replication Anomalies Clinic

Source: practice/03-replication-anomalies-clinic.md

For each statement, identify the mistake:

  1. "Our replicas are close, so lag is negligible."
  2. "Reading from the leader always fixes stale reads."
  3. "If the user only writes sometimes, anomalies are rare and we can ignore them."
  4. "Monotonic reads and read-your-writes are the same thing."
  5. "A conflict is just a stale read that never catches up."

Repair Protocol

For each real mistake:

  1. Reproduce the failure on the smallest example, trace, proof, query, command, or design sketch.
  2. Name the hidden assumption.
  3. Repair the artifact.
  4. Save evidence that changed: failing then passing test, corrected proof step, revised diagram, safer command, benchmark, or review note.
  5. Add one retrieval card beginning with Check... before... or Do not use... when....

Mistake Log

DateMistakeSymptomRoot causeRepair evidenceRetrieval card
StarterPick one radar row aboveExplain how it would fail in this moduleName the assumptionAdd a counterexample or corrected artifactWrite the card before closing the page

Completion Standard

  • At least five real mistakes are logged.
  • At least two mistakes include a counterexample or failing test.
  • At least one mistake connects to an older semester skill.
  • At least one correction changes code, a proof, a diagram, a command transcript, a query, or a design decision.