Get the latest tech news

Discord Reduced WebSocket Traffic by 40%


How we rolled out zstandard and other improvements across our gateway cluster to reduce the amount of bandwidth that’s used by our clients.

However, doing this adds additional complexity as both the compressor (in this case, a gateway node) and the decompressor (a Discord client) need to have the same copy of the dictionary to communicate with each other successfully. As shown in the table above, the compression gains were minimal for READY, so we looked at the results for more dispatch types hoping dictionaries would give more of an edge for smaller payloads. Since zstandard ships as a C library, it was simply a matter of finding bindings in the target language —Java for Android, Objective C for iOS, and Rust for Desktop — and hooking them into each client.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Discord

Discord

Related news:

News photo

YouTube Launches Communities, a Discord-Like Space For Creators and Fans

News photo

Discord rolls out end-to-end encryption for audio, video calls

News photo

YouTube launches Communities, a Discord-like space for creators and fans to interact with each other