惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

GbyAI
GbyAI
Martin Fowler
Martin Fowler
I
InfoQ
腾讯CDC
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
爱范儿
爱范儿
Microsoft Security Blog
Microsoft Security Blog
Google DeepMind News
Google DeepMind News
D
DataBreaches.Net
云风的 BLOG
云风的 BLOG
F
Fortinet All Blogs
N
Netflix TechBlog - Medium
博客园 - 聂微东
Microsoft Azure Blog
Microsoft Azure Blog
D
Docker
博客园 - 三生石上(FineUI控件)
Y
Y Combinator Blog
博客园 - Franky
Engineering at Meta
Engineering at Meta
B
Blog
罗磊的独立博客
Apple Machine Learning Research
Apple Machine Learning Research
Jina AI
Jina AI
V
Visual Studio Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Deployment Frequency: How We Went From Weekly to 20x/Day
Samson Tanim · 2026-04-24 · via DEV Community
Cover image for Deployment Frequency: How We Went From Weekly to 20x/Day

Samson Tanimawo

The Deploy Fear

We deployed once a week. On Thursdays. With a 2-hour deployment window. Three engineers on standby. A rollback plan printed on paper (yes, really).

Everyone was terrified of deployments because they were big, risky, and painful.

The Paradox: Deploy More = Fail Less

Counter-intuitive but proven: increasing deployment frequency reduces failure rate.

Weekly deploys: Big changes, high risk, hard to debug
Average changeset: 15 PRs, 2000+ lines changed
Failure rate: 18%
MTTR when fails: 45 min (too many suspects)

Daily deploys: Medium changes, moderate risk
Average changeset: 3 PRs, 400 lines changed
Failure rate: 8%
MTTR when fails: 15 min

20x/day deploys: Tiny changes, low risk, easy to debug
Average changeset: 1 PR, <100 lines changed
Failure rate: 2%
MTTR when fails: 3 min (one suspect = instant rollback)

Enter fullscreen mode Exit fullscreen mode

Phase 1: Remove Manual Gates (Week 1-2)

Our deploy process had 6 manual steps:

Before:
1. Developer opens deploy request (Jira ticket)
2. Lead reviews and approves (wait 2-4 hours)
3. QA runs manual test suite (wait 1-2 hours)
4. Ops team schedules deploy window (wait 1 day)
5. Ops runs deploy script manually
6. Developer verifies in production

After:
1. Developer opens PR
2. CI runs tests automatically (10 min)
3. PR approved by peer (30 min)
4. Merge to main = auto-deploy to staging
5. Automated smoke tests pass = auto-deploy to production
6. Automated verification (health checks + canary metrics)

Enter fullscreen mode Exit fullscreen mode

Total time: 4-24 hours → 45 minutes.

Phase 2: Test Confidence (Week 3-6)

You can't deploy fast without fast, reliable tests:

test_pyramid:
unit_tests:
count: 2000
run_time: 90 seconds
reliability: 99.9% # No flaky tests allowed

integration_tests:
count: 200
run_time: 5 minutes
reliability: 99.5%

e2e_tests:
count: 30
run_time: 8 minutes
reliability: 98%

total_ci_time: 14 minutes # Must be under 15

rules:
- flaky_test_policy: "Fix or delete within 48 hours"
- new_feature_requires: "unit + integration tests"
- ci_time_budget: "Never exceed 15 minutes"

Enter fullscreen mode Exit fullscreen mode

Phase 3: Progressive Delivery (Week 7-10)

deploy_pipeline:
stages:
- name: build_and_test
duration: 14 min
gate: all_tests_pass

- name: deploy_staging
duration: 2 min
gate: automated_smoke_tests

- name: canary_production
traffic: 5%
duration: 10 min
gate: error_rate < 0.5%, latency < 2x baseline

- name: gradual_rollout
steps: [25%, 50%, 100%]
duration: 15 min per step
gate: all_metrics_healthy

Enter fullscreen mode Exit fullscreen mode

Phase 4: Feature Flags (Week 11-14)

Deploy code without enabling features:

from feature_flags import is_enabled

def get_recommendations(user):
if is_enabled('new_recommendation_engine', user=user):
return new_engine.recommend(user) # Deployed but only for 5% of users
return old_engine.recommend(user)

Enter fullscreen mode Exit fullscreen mode

This separates deployment (technical) from release (business). Deploy 20x/day, release features when ready.

The Culture Change

Old mindset: "Deployments are dangerous events"
New mindset: "Deployments are routine operations"

Old: "Let's batch these changes for Thursday"
New: "Ship it now, it's one small change"

Old: "Who's on deploy duty?"
New: "Everyone deploys their own code"

Enter fullscreen mode Exit fullscreen mode

Results After 6 Months

Metric Before After
Deploy frequency 1x/week 18-22x/day
Lead time (commit to prod) 5 days 45 minutes
Change failure rate 18% 2.1%
MTTR 45 min 3 min
Developer satisfaction 3.2/5 4.7/5

The DORA metrics improved across the board. But the biggest win was cultural: engineers stopped fearing production.

If you want AI-powered deployment safety that gives your team the confidence to ship fast, check out what we're building at Nova AI Ops.


Written by Dr. Samson Tanimawo
BSc · MSc · MBA · PhD
Founder & CEO, Nova AI Ops. https://novaaiops.com