
ALT This image is an infographic titled "How Discord Stores Trillions Of Messages". On the left, a timeline illustrates Discord's storage evolution. In November 2015, Discord managed 100 million messages using MongoDB, but as data outgrew RAM, latency became unpredictable. By 2017, with billions of messages, they switched to Cassandra, which had a 10-second "stop-the-world" garbage collection (GC) issue. On the right, the 2023 infrastructure shows a Python API connecting to a Data Service, which interfaces with a "Scylla" shard-per-core database. Scylla's architecture is detailed, showing CPU, RAM with row-based cache, and storage with SSD, linked by a Memtable, Commit Log, and SSTables. The image includes the ByteByteGo blog URL at the top right.


















