BotNetwork

Blue-green deploys for webhook bots

Two URLs, one cutover, zero missed updates.

Guide1 min readUpdated

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

  1. Deploy green with the same secrets and a different hostname.
  2. Run signature and health fixtures against green.
  3. Flip the webhook URL or load balancer.
  4. Keep blue warm for fast rollback.
  5. Drain in-flight jobs before shutting blue down.

Watch out for

  • Changing DNS only, forgetting setWebhook.
  • Both colors consuming the same polling token.

Related comparisons and tools