From Unit Tests to Synthetic Canaries at Netflix
summary
Describes an implementation-agnostic test pipeline that moves from unit and property tests to production-like synthetic canaries that replay workloads from a gRPC+YAML generator and run on real infrastructure. Uses property-based testing with Hegel to catch combinatorial bugs, then spins up parallel clusters to drive millions of requests per second to compare old and new code for correctness and latency. Works for performance validation but flags that correctness violations under heavy load remain hard to debug.
AI-written summary · about
chapters (10)
- 0:00Introduction and motivation
- 2:17Why we test code
- 6:10Limitations of unit tests
- 8:35Property-based testing
- 10:39Integration testing gaps
- 13:08Smoke tests and workload limits
- 14:31Canaries and production traffic
- 16:18Synthetic canaries concept
- 19:31Performance and benchmarking
- 21:20Summary and future vision
