How we continuously validate formal specifications in production
A monitor built from TLA+ specs found conflicting placements that had sat in Datadog's production for about a year. It costs about 2% CPU at p90 across 1,300+ pods.

Datadog built FETCh, which turns TLA+ specifications into runtime monitors, and runs it against Husky, its distributed streaming system, in production. A sidecar checks routing on more than 1,300 routing service pods at a p90 overhead of about 2% CPU, and a batch check processed several million placements in around an hour. The monitor caught what testing had not: a change to placement logic had let conflicting placements persist in production for about a year, and they would have crashed Husky's backfill system while recovering from placement data loss. If your team already writes specs, this is how to keep checking them after the code ships.
Comments
Loading comments…