Why it matters
Blue-green (or slot swap) deploys let you validate the new bot version on a shadow URL before cutting webhook traffic.
Practical steps
- Deploy green with the same secrets and a different hostname.
- Run signature and health fixtures against green.
- Flip the webhook URL or load balancer.
- Keep blue warm for fast rollback.
- Drain in-flight jobs before shutting blue down.
Watch out for
- Changing DNS only, forgetting setWebhook.
- Both colors consuming the same polling token.