Prompt
How do I do a gradual rollout without redeploying?
Latest observation
You can do a gradual rollout without redeploying by separating code deploy from traffic exposure.
Common ways to do it
1) Feature flags / remote config
Deploy the code once, but keep the new behavior turned off until you’re ready.
- Release the code to production
- Gate the new path behind a flag
- Turn the flag on for:
- internal users first
- 1% of users
- 10%
- 50%
- 100%
Best for: application-level changes, A/B tests, canaries, safe launches
Tools: LaunchDarkly, Unleash, Firebase Remote Config, ConfigCat, homegrown flags
2) Progressive delivery at the router/load balancer
Keep two versions of the app running, and shift traffic gradually between them.
- Version A = stable
- Version B = new
- Use your ingress / service mesh / load balancer to send:
- 5% to B
- 10% to B
- 25% to B
- etc.
Best for: full-service or infra-level changes
Tools: Kubernetes service mesh (Istio/Linkerd), NGINX, Envoy, AWS ALB weighted target groups, Argo Rollouts, Flagger
3) Canary release with stable backend
Deploy once, then adjust routing or user targeting.
- New version is already deployed
- Only a small subset sees it
- Increase exposure gradually if metrics look good
Best for: minimizing blast radius
Needs: monitoring, rollback plan, ability to compare versions
If you truly cannot redeploy at all
Then your only option is to change configuration or routing, not code. That means:
- feature flags
- config toggles
- traffic splitting
- user segmentation
You cannot introduce new executable code into production without some form of deployment.
Practical example
A typical rollout plan:
- Deploy new code with feature flag off
- Enable for employees only
- Enable for 1% of users
- Watch errors/latency/business metrics
- Expand to 10%, 25%, 50%, 100%
- Remove the flag after full rollout
Key requirements
To do this safely, you need:
- a kill switch / rollback path
- monitoring on errors, latency, and business metrics
- deterministic user bucketing
- stateless or backward-compatible changes
If you want, I can give you:
- a Kubernetes example
- an AWS example
- a feature-flag implementation pattern
- or a step-by-step rollout checklist