Discord Bot Platform  ·  View 17 of 19  ·  Operations

Gateway Session Lifecycle

A ring that closes: every disconnect is a resumable state, not an error.

Editable source SVG draw.io All views
Ready & streaming Degraded: buffer high Disconnected Reconnecting server-set jitter Resuming Session slow reader closed, resumable backoff session found replayed Discord Bot Platform — Gateway Session Lifecycle Opportunity Decision point Risk / gap Application we own v 1.0 · owner Integration Platform Architecture · date 2026-10

Decisions

  • Degraded is a state with a transition, not a failure: a slow reader is warned, then closed resumably (ADR-04).
  • Reconnecting has two exits: resume inside 120 s, or a fresh identify that leaves the ring and pays the identify throttle (view 13).