System design · interactive
Deployment strategies
Version 2 has a bug that fails 30% of requests. You don't know that yet. How many users get hurt depends on how you roll it out. Ten instances, 1,000 requests per step.
- step 11 instance (10%) gets v2 · 30 failed
- step 2canary error rate 30% vs 0.1% baseline · 30 failed
- step 3automatic rollback
- step 4
- step 5
- step 6
v1 v2 (buggy)
60 failed requests in total
Only 10% of traffic sees v2. Its error rate is compared with the old version and it's rolled back automatically: 60 failed requests.
Strategy
Step 3 of 4 · read left to right
In production
Tools and technologies
Deploy tooling automates these rollouts.
Not tied to one language — use these names when you search docs or design a system.