Skip to content

Lesson 4 of 4 · 35 min

The reconciliation job — trust, but verify

The nightly comparator that turns "probably consistent" into "we would know".

Course content · 4 lessons
  1. Request-reply, done properly 35 min
  2. Platform Events and the at-least-once contract 40 min
  3. Batch — the pattern everyone pretends they have outgrown 30 min
  4. The reconciliation job — trust, but verify 35 min

Every pattern so far can lose data quietly: a dropped event, a skipped row, a retry that gave up. Each loss is rare; across a year they are a certainty.

The reconciliation job is the answer, and it is gloriously boring: every night, count and sum both sides for the previous day, compare, and raise a case on any mismatch. This lesson builds it as a Batch Apex job, tunes the comparison window around timezone edges — where every reconciliation bug lives — and finishes the course with the claim the whole thing has been building to: an integration is not done when it works; it is done when you would know if it stopped.

to move to open esc to close Full search