AlgoViz

Design Discord

hard 50 min

Design a service for communities like Discord: huge groups with text channels, voice rooms that are always open, and detailed roles.

Where it shows up

The same pattern appears across everyday software.

  • Discord's relays

    Discord's blog on a community with more than a million people online describes relays of up to 15,000 sessions each, and passive sessions that made up about 90% of connections in large communities.

  • Discord's message store

    Discord wrote about 177 Cassandra nodes becoming 72 ScyllaDB nodes, with data services that join equal reads.

  • Discord's voice network

    In 2018 Discord described more than 850 voice servers in 13 regions, its own forwarding unit, and over 2.6 million people talking at once.

  • Video classes

    Online lessons use the same forwarding units, and send several picture sizes so that weak links get the small one.

  • Live sport chat

    Rooms with huge audiences send samples and totals, since nobody can read a thousand lines a second.

  • Online games

    Game worlds send a player only what is near. Passive sessions are the same idea applied to a chat.