Tech challenge · System Design

The finance dashboard showed wrong totals for a week

MediumSystem Design

A source system changed amount from rupees to paise without telling anyone. The pipeline kept running, and the finance dashboard showed totals 100 times too high for a week before someone noticed. What would you put in place so this is caught within one run?

Think it through or sketch an answer first, then open the hint or the solution.

Show a hint

Agreements with the source, and automated checks on what arrives, before it reaches consumers.

Show the solution

Agree a data contract with the source (schema, units, ranges, who to notify). Add automated quality checks at ingestion and before publishing: schema checks, value ranges, and anomaly checks such as day-over-day change in totals. Quarantine failing batches instead of publishing them, alert the owner, and track quality metrics over time so silent drifts become visible.

Common mistakes

  • Only checking schema: the type did not change, the meaning did.
  • Alerting into a channel nobody owns.

Learn more

More System Design challenges

Today's challenge and the full archive