Auto-Rollback with Cloudflare workers
summary
Built an automated rollback pipeline for Cloudflare Workers using TypeScript, smoke tests (k6 style) and Grafana metric checks, with service config as a simple JSON for blue green or canary strategies. A personalization API at 900 RPS and 99.9% SLO goes from a 30 minute incident costing ~1M failed requests to about 2 minutes of impact for 10% of users thanks to automatic rollback logic that detects anomalies every 30 seconds and flips versions or reverts using Durable Objects state partitioning and auto-rollback rules.
AI-written summary · about
chapters (16)
- 0:00Meet Francois
- 0:48Deployment Confidence Polls
- 2:05Cloudflare In The Wild
- 3:42What Are Workers
- 4:31Blue Green Vs Canary
- 4:51Early Deployment Pipeline
- 6:00Personalization SLO Stakes
- 8:21Auto Rollback Workflow
- 9:31Scaling With Config Files
- 11:03Blue Green Walkthrough
- 12:24Canary Rollout And Metrics
- 13:12Rollback Impact Math
- 14:18Stateful With Durable Objects
- 16:06Compatibility And Migrations
- 16:47Graph Annotations Tip
- 17:49Key Takeaways
