Prevent, detect, repair
On This Lesson 4 topics
This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.
In this lesson
pick the right control for each invariant.
Planned topics
- Prevent: constraints, outbox pattern, idempotency, sagas with compensation.
- Detect: reconciliation, invariant checks, alerts on counters that should match.
- Repair: automated fixes for known drift, manual workflow for the rest, always logged.
- Cost-benefit: money-touching invariants need all three; low-impact ones may only need detection.
Draft outline details
Demonstration
Matrix: invariant × prevent / detect / repair, filled for the order workflow.
Check your understanding
Why not rely on prevention alone?
Show answer
Bugs, outages, and external systems still cause drift, so you must also detect and repair.
Practice
Apply this lesson with the module's lab, exercises and quiz.
Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.