Discord

How Discord Indexes Trillions of Messages

Answers How do you search trillions of chat messages?

Discord’s search system began dropping messages when its Redis indexing queue backed up during Elasticsearch failures. The team moved the queue to PubSub, batched writes per destination cluster, and ran many smaller…

The problem
Discord’s Redis indexing queue dropped messages whenever Elasticsearch failures backed it up.
What they did
The team moved to PubSub, batched writes per destination cluster and ran smaller clusters in cells on Kubernetes.
The result
Elasticsearch failures now slow indexing down instead of losing messages.

Why read it What breaks when a search index grows from billions to trillions of documents.

Summarised from the original source by Informa AI. The full story, and every claim in it, belongs to the publisher.

Explore all Curiosity Cards →