How discord stores trillions of messages


Discord stores trillions of messages using a database called Cassandra, which is designed to handle large amounts of data. Initially, they used 12 Cassandra nodes to store billions of messages, and by 2022, they had scaled up to 177 nodes to accommodate trillions of messages. Each task inserts data into the destination database with a configurable amount of concurrency, working on one token range at a time. This allows Discord to efficiently manage and store the massive volume of messages.

Looking for the a community to discuss Discord and its features? Join over 750,000 Discord users in our community.


Join Our Server