# 🍔🧠 Why the F\*ck is Discord Still Using Elixir

DevFeed: [🍔🧠 Why the F\*ck is Discord Still Using Elixir](<https://devfeed.tech/articles/why-the-f-ck-is-discord-still-using-elixir-18140.md>)

Original publisher: [Read original article](<https://hungrymindsdev.substack.com/p/why-the-fck-is-discord-still-using>)

Author: Alexandre Zajac

Published: 2026-05-18T15:39:51Z

Content type: article

Language: en

Sources: [Hungry Minds](<https://devfeed.tech/sources/hungry-minds.md>)

Topics: [Discord](<https://devfeed.tech/topics/discord.md>), [Elixir](<https://devfeed.tech/topics/elixir.md>), [tracing](<https://devfeed.tech/topics/tracing.md>), [zero downtime deployment](<https://devfeed.tech/topics/zero-downtime-deployment.md>), [software-architecture](<https://devfeed.tech/topics/software-architecture.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agent-architecture](<https://devfeed.tech/tags/agent-architecture.md>), [ai](<https://devfeed.tech/tags/ai.md>), [articles](<https://devfeed.tech/tags/articles.md>), [bottlenecks](<https://devfeed.tech/tags/bottlenecks.md>), [cache](<https://devfeed.tech/tags/cache.md>), [cache-stampede](<https://devfeed.tech/tags/cache-stampede.md>), [challenge](<https://devfeed.tech/tags/challenge.md>), [chat](<https://devfeed.tech/tags/chat.md>), [concurrent](<https://devfeed.tech/tags/concurrent.md>), [context](<https://devfeed.tech/tags/context.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [deploy](<https://devfeed.tech/tags/deploy.md>), [discord](<https://devfeed.tech/tags/discord.md>), [distributed](<https://devfeed.tech/tags/distributed.md>), [distributed-tracing](<https://devfeed.tech/tags/distributed-tracing.md>), [downtime](<https://devfeed.tech/tags/downtime.md>), [elixir](<https://devfeed.tech/tags/elixir.md>), [encoding](<https://devfeed.tech/tags/encoding.md>)

## AI overview

Discord's Elixir services use distributed tracing to make message-passing flows observable across APIs, guilds, and sessions. An Envelope wraps inter-process messages to carry trace context, while a zero-downtime rollout supports both the new Transport and legacy messaging during migration. Sampling scales down with fanout size (from 100% for one session to 0.1% for 10,000 or more), and sessions after fanout can continue traces but cannot start new ones. Lazy context parsing reportedly cut gRPC handler CPU overhead in half; forbidding new root spans after fanout recovered another 10% CPU. The excerpt says tracing exposed bottlenecks, including sessions spending 75% of something, but cuts off before specifying what.

## Source excerpt

PLUS: AI as Netflix model 📊, Spotify NLI via Claude 🎵, Subagent patterns 2026 🤖