Discord

How Discord Stores Billions of Messages

Early story of Discord outgrowing MongoDB and moving messages to Cassandra with a channel+time-bucket partition key.

Published
2017-01-13
Scale
billions of messages, 120 million messages/day
Techniques
database migration data modeling partitioning
Stack
Cassandra MongoDB

The best scaling write-ups, weekly

One email a week. No spam.