MongoDB vs Cassandra at scale: Discord's switch and Stripe's path

Published 2026-10-19 · Built only from first-party engineering write-ups in our database. Every number below comes from the linked source.

Discord is the direct comparison: its 2017 post explains outgrowing MongoDB and moving messages to Cassandra with a partition key of channel plus time bucket, at billions of messages and 120 million messages a day. Stripe shows the other path: it stayed on document databases (MongoDB, then its own DocDB) and invested in zero-downtime migrations between shards, citing 1.5 PB and 99.999% uptime.

MongoDB vs Cassandra: side by side

MongoDBCassandra
Stories in our database33
CompaniesDiscord and StripeDiscord and Netflix
Published2017–20242017–2026
Techniques alongside itdata modeling (1), database migration (1), dual writes (1), online migration (1)database migration (2), backups as cold tier (1), compaction (1), cost optimization (1)
Scale numbers stated in sources1.5 PB (Stripe); billions of messages (Discord)15+ PB compressed data in cold storage (Netflix); trillions of messages (Discord); billions of messages (Discord)
Direct comparison storyDiscord: How Discord Stores Billions of Messages(same story)

Verdict

Discord's move came down to modeling messages as partitions of channel plus time bucket. Stripe kept documents and built tooling to move them between shards. Choose based on how your data is read, not on the brand.

Counts are stories in How They Scaled tagged with each side, see the MongoDB and Cassandra pages. They describe what these teams wrote about, not market share or benchmark results.

The direct comparison

MongoDB in other scaling stories

Cassandra in other scaling stories

FAQ

Why did Discord move from MongoDB to Cassandra?

Discord's 2017 post How Discord Stores Billions of Messages describes outgrowing MongoDB and moving messages to Cassandra, partitioned by channel plus a time bucket.

Does Stripe use MongoDB?

Stripe's 2017 online migrations post is about MongoDB with Ruby, and its 2024 post describes DocDB, Stripe's document database platform, at 1.5 PB with 99.999% uptime.

The best scaling write-ups, weekly

One email a week. No spam.

Subscribe

More comparisons

All comparisons →