Discord Bot Platform  ·  View 15 of 19  ·  Operations

Release and Environments

Release gates on resume success, not on error rate alone.

Editable source SVG draw.io All views
Source Repository trunk-based Build Build & Test GitHub Actions Protocol Contract Tests opcodes, close codes Stage Staging Region synthetic bots Canary 1 % of shards drain-aware Resume Success Gate ≥ 99.5 % Roll out Region by region node drain, 30 s roll back Discord Bot Platform — Release and Environments Application we own Decision point failure / alternate A Gateway release drains a node by telling bots to reconnect with jitter; it never kills a socket cold. v 1.0 · owner Integration Platform Architecture · date 2026-10

Decisions

  • A release drains nodes by instructing bots to reconnect with jitter; it never kills a socket cold (ADR-07).
  • Protocol contract tests guard opcodes and close codes, the real public API.

Risk

  • A Gateway release is a mini reconnect storm; canarying at 1 % of shards bounds it.