Why it matters
Resume correctly after disconnects to avoid burning session_start_limit.
Practical steps
- Persist session_id and sequence when your library requires it
- Honor identify rate limits from Get Gateway Bot
- Backoff reconnects with jitter
- Alert on repeated invalid sessions
- Test kill -9 recovery in staging
Watch out for
- Copy-pasting outdated snippets for discord gateway resumes without re-reading current official docs.
- Shipping discord gateway resumes to production without a staging rehearsal and a documented rollback.