When Meridian Financial came to us with a problem — their data pipelines were failing silently and corrupting downstream analytics — we realised our existing retry logic was fundamentally broken for their scale.
In this post we walk through the three architectural changes that took their pipeline failure rate from 6% to 0.06%.
The Problem: Silent Failures in Distributed Systems
At 500M events per day, a 6% failure rate means 30 million lost or corrupted records every 24 hours. Most of these failures were invisible at the pipeline level — data was being ingested, transformed, and written, but the values were wrong due to race conditions in our distributed state management.
1. Moving to Exactly-Once Semantics
The first change was adopting a two-phase commit protocol for all transform nodes. Previously, we used at-least-once delivery with idempotency checks — but idempotency checks at this scale were too expensive. Two-phase commit added 12ms median latency but eliminated the class of duplicate-write errors entirely.
2. Schema Registry with Backward Compatibility Enforcement
The second change was introducing a centralised schema registry that blocks any schema change that would break existing consumers. Before this, a producer publishing a new required field would silently break 40 downstream pipelines.
3. Real-time Lineage Tracking
Finally, we added event-level lineage tracking — every record now carries a metadata header describing its full transformation history. When an anomaly is detected, we can trace it back to the exact source record and transform node within milliseconds.
The results spoke for themselves: Meridian's pipeline failure rate dropped from 6% to 0.06% within the first month of rollout.
0 Comments
Leave a Comment