Message Indexing and Search
How Discord Indexes Trillions of Messages

How Discord Indexes Trillions of Messages

4/24/2025

What this post added

This post details the evolution of Discord's message search system, moving from an initial design that indexed billions of messages using Elasticsearch sharded by guild/DM to address the challenges of indexing trillions of messages. It highlights the limitations encountered with the previous architecture and sets the stage for discussing the new solutions implemented.

Read the original post ↗