Understanding Deployment in Edgit
Deployment in Edgit is just metadata. When you “deploy,” you’re creating a Git tag that points to a version:{prefix}/{type}/{name}/{slot} where slots are environments like staging, production, or canary.
Edgit’s job ends at git push. Your CI/CD (GitHub Actions) reads these tags, syncs to Cloudflare KV, and triggers rebuilds.
This means:
- Deployments are instant (just Git tags)
- Rollbacks are instant (update the tag)
- You can deploy different versions to different environments simultaneously
- Perfect audit trail (Git history)
Strategy 1: Traditional (Staging → Production)
The safe, predictable approach.Workflow
v1.1.0) don’t need --force. Environment tags (staging, production) need --force because they move between versions.
When to use: Most production systems, especially when starting out
Pros:
- Simple to understand
- Clear separation of environments
- Easy to test before production
- Slower (requires testing in each environment)
- Staging might not catch all issues (different data, traffic patterns)
Strategy 2: Canary Deployments
Deploy to a small percentage of production traffic first.Setup
Workflow
Configure Traffic Splitting
In your Conductor ensemble:- Test with real production traffic
- Catches issues that staging misses
- Can roll back without affecting everyone
- More complex setup
- Need monitoring to detect issues
- Some users get different versions
Strategy 3: Blue-Green Deployment
Run two complete environments, switch instantly.Setup
Workflow
- Zero-downtime deployments
- Instant rollback (switch back to blue)
- Can test green with production-like environment
- Requires double the infrastructure
- More expensive
- Need to keep data in sync between blue/green
Strategy 4: Feature Flags / A/B Testing
Deploy multiple versions, control who gets what.Setup
Workflow
- Data-driven decisions
- Can test multiple variants
- Users get consistent experience (sticky sessions)
- Need analytics infrastructure
- Requires statistical significance
- More complex to set up
Strategy 5: Progressive Rollout
Gradually increase percentage over time.Workflow
Configure Gradual Rollout
- Can pause at any percentage
- Easy to roll back (decrease percentage)
- Gradual impact on systems
- Requires feature flag infrastructure
- More complex than binary on/off
Strategy 6: Ring Deployment
Deploy to concentric “rings” of users.Ring Structure
- Very safe (catch issues early with small groups)
- Can get feedback from beta users
- Clear rollout plan
- Slowest approach
- Need user segmentation
- Complex configuration
Combining Strategies
Real-world: combine multiple strategies.Example: Staged Canary Rollout
Rollback Strategies
Every deployment strategy needs a rollback plan.Instant Rollback
--force is required for environment tags because you’re moving the tag to point to a different version.

