Environment Strategy
Build safe rollout patterns using environment-specific naming, routing, and verification steps.
7 min read
Use this guide to keep staging and production traffic isolated.
Purpose
This guide helps you:
- Separate destinations per environment.
- Promote changes safely.
- Define rollback actions before production rollout.
Prerequisites and permissions
- Access to endpoint and relay-target management.
- Environment-specific destination URLs/inboxes.
Step-by-step workflow
1. Create environment-specific relay targets
Examples:
billing-webhook-stgbilling-webhook-prod
Include environment in target names/descriptions.
2. Create environment-specific endpoints
Examples:
orders-intake-stgorders-intake-prod
Keep method/payload/security settings aligned unless differences are intentional.
3. Validate in staging first
- Attach staging outputs only.
- Send representative traffic.
- Verify outcomes in Activity.
- Confirm destination behavior.
4. Promote to production
- Apply proven settings to production endpoint.
- Verify prod secrets/certs.
- Send controlled production check traffic.
- Monitor Activity closely during rollout.
5. Document ownership and rollback
Per production endpoint, record:
- Owning team
- Destination owner
- Rollback action (disable endpoint, detach output, or rotate URL)
Expected result and verification checks
- Staging and production stay isolated.
- Promotion is repeatable and low-risk.
- Rollback can be executed quickly.
Common issues and fixes
- Traffic sent to wrong destination: enforce naming standards and review outputs before save.
- Production-only failures: recheck production-only auth/cert/headers.
- Confusing endpoint lists: use consistent prefixes/suffixes.