Why it matters
You need Discord sharding when you pass the guild limit for one process — honor Get Gateway Bot, do not shard prematurely.
Practical steps
- Call Get Gateway Bot and honor session_start_limit.
- Use official sharding formulas.
- Centralize rate-limit buckets per major parameter.
- Keep slash command registration shard-aware.
- Load-test presence updates separately from message handlers.
Watch out for
- Max shards on a bot with a dozen guilds.
- Shared mutable cache across shards without coordination.