Strategies
Nife supports multiple deployment strategies to minimise risk and downtime when releasing new versions.
Available Strategies
Rolling Deployment
Gradually replaces old instances with new ones. Zero downtime, but both versions run simultaneously during the update.
Blue-Green Deployment
Maintains two identical environments (blue = current, green = new). Switch traffic instantly once the new version is verified.
Benefits:
- Instant rollback by switching back to blue
- No downtime during deployment
- Full testing of new version before going live
Canary Deployment
Routes a small percentage of traffic to the new version first. Gradually increase traffic as confidence grows.
Benefits:
- Reduced blast radius if new version has issues
- Real user testing before full rollout
- Easy rollback
Configuring Strategies
- Navigate to your application in the Nife dashboard
- Go to Deploys → Strategies
- Select your preferred strategy
- Configure traffic split percentages (for canary)
- Deploy