Skip to main content

Understanding Deployment in Edgit

Deployment in Edgit is just metadata. When you “deploy,” you’re creating a Git tag that points to a version:
Tags use the 4-level format: {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

Note: Version tags (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
Cons:
  • 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:
When to use: High-traffic systems where you need confidence before full rollout Pros:
  • Test with real production traffic
  • Catches issues that staging misses
  • Can roll back without affecting everyone
Cons:
  • 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

When to use: When you need instant rollback without affecting users Pros:
  • Zero-downtime deployments
  • Instant rollback (switch back to blue)
  • Can test green with production-like environment
Cons:
  • 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

When to use: When you want to measure impact objectively Pros:
  • Data-driven decisions
  • Can test multiple variants
  • Users get consistent experience (sticky sessions)
Cons:
  • Need analytics infrastructure
  • Requires statistical significance
  • More complex to set up

Strategy 5: Progressive Rollout

Gradually increase percentage over time.

Workflow

Configure Gradual Rollout

When to use: When you want fine-grained control over rollout speed Pros:
  • Can pause at any percentage
  • Easy to roll back (decrease percentage)
  • Gradual impact on systems
Cons:
  • Requires feature flag infrastructure
  • More complex than binary on/off

Strategy 6: Ring Deployment

Deploy to concentric “rings” of users.

Ring Structure

When to use: Large user bases with different risk tolerances Pros:
  • Very safe (catch issues early with small groups)
  • Can get feedback from beta users
  • Clear rollout plan
Cons:
  • 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

Remember: --force is required for environment tags because you’re moving the tag to point to a different version.

Blue-Green Rollback

Best Practices

1. Start Conservative

2. Have a Rollback Plan

3. Use —force for Environment Tags

4. Let CI/CD Handle the Rest

Next Steps

Rollback & Time Travel

Emergency rollbacks and debugging

A/B Testing

Multivariate testing strategies

CI/CD Integration

Automate deployments in your pipeline

Versioning Guide

Master component and agent versioning