How real companies do itLesson 011 min
How Discord stores trillions of messages
Discord began on MongoDB, then moved to Cassandra as messages reached the billions. By 2022 that was 177 machines, struggling with busy channels slowing a machine and pauses for memory clean-up. The team moved to ScyllaDB, which stores data in the same way but avoids those pauses. After a Rust rewrite of the migration tool, 72 machines and faster reads replaced 177.
Remember
The right database changes as you grow, so no single choice is best.
