Catalogue / discord-2024-gateway-compression

Discord cuts WebSocket gateway bandwidth by nearly 40% with streaming zstandard and delta passive updates

Discord, 2024. Gateway WebSocket service.

Organisation
Discord
Evidence
Reported from production
Source
How Discord Reduced Websocket Traffic by 40%

Discord Blog, published 2024-09-20

Records

Decision#d1

Replace streaming zlib with tuned streaming zstandard on gateway WebSockets across all client platforms

Decision#d2

Dark-launch compression on live gateway traffic before building clients, then roll out behind an experiment

Decision#d3

Stay with static streaming zstandard parameters rather than shipping dictionaries or dynamic off-peak buffer upgrades

Decision#d4

Replace full-snapshot PASSIVE_UPDATE_V1 dispatches with delta-based PASSIVE_UPDATE_V2 for inactive guilds

Sign in to read what was chosen, what was rejected and what it cost, each with its place in the source. An account is free.