Chat & gaming

Discord

Discord uses Elixir, which runs on the same virtual machine as Erlang, to power the real-time messaging gateway that keeps millions of concurrent chat connections alive, and later adopted Rust for some performance-critical services.

What we cover in the quiz

  • Elixir runs on the BEAM virtual machine, the same one behind Erlang, giving Discord the lightweight concurrency and fault tolerance needed to keep huge numbers of chat connections open at once.
  • Discord described how garbage-collection pauses in a Go service caused periodic latency spikes, and how rewriting that service in Rust, which has no garbage collector, resolved the issue.

Play the quiz