---
title: "Discord and Elixir · Elixir Community"
description: "Real-time chat built on Elixir, with WebSocket gateways connecting people across text, voice and video."
url: https://elixir.community/companies/discord/
---

[All companies](https://elixir.community/companies)

# Discord

Real-time chat built on Elixir, with WebSocket gateways connecting people across text, voice and video.

## How Discord uses Elixir

Discord chose Elixir for its WebSocket gateway and real-time message delivery. Its engineers split the chat infrastructure into independently scalable services, while a separate Python API handled other parts of the product.

The team combined Distributed Erlang with service discovery to connect its nodes, and used Rustler to bring Rust data structures into Elixir. Elixir also handled voice and video signaling; the media streaming itself ran in C++.

Industry

Communication

Website

[discord.com](https://discord.com)

## Further reading

-   [Elixir blog case study](https://elixir-lang.org/blog/2020/10/08/real-time-communication-at-scale-with-elixir-at-discord/)
