Skip to content
javaguru
All engineering blogs

Discord Featured

How Discord Stores Trillions of Messages

Discord moved trillions of messages from Cassandra to ScyllaDB, cutting operational pain and latency while migrating at millions of messages per second.

Database & StorageScalabilitySystem Design
Read Original Article Opens on discord.com. The full article stays with its publisher.

Why it's worth reading

The sequel to “billions of messages” is more interesting than the original: it is about the cost of a database that technically still works.

Key takeaways

  1. 01 A database that scales writes can still fail on operational toil and unpredictable read latency.
  2. 02 Migration speed comes from working with the storage layout: partition-aware copying hit millions of rows per second.
  3. 03 Dual-reading production traffic against both clusters made the cutover a measurement rather than a hope.

Related reading

All engineering blogs
Figma

How Figma’s databases team lived to tell the scale

Figma's nine-month project to horizontally shard its Postgres stack, after vertical partitioning, caching and read replicas ran out of headroom.

Database & StorageScalabilitySystem Design
Discord

Modernizing the Video Playback Experience at Discord

How Discord merged four video players into one shared player, cutting per-product player code by up to 94% and shipping the switch without users noticing.

PerformanceBackend EngineeringSoftware Architecture
Meta

Inside Prometheus: Meta’s Journey to a Gigawatt-Scale Supercluster

Inside Prometheus, Meta's gigawatt-scale AI supercluster in Ohio: liquid cooling, networking and the plan to reach roughly a million GPUs.

InfrastructureScalabilitySystem Design