Discord
Databases
16 min
How Discord Migrated Trillions of Messages and Fired Their Garbage Collector
It is 2022 and Discord's on-call engineers are babysitting a 177-node database cluster, manually rebooting nodes after Java GC pauses spiral out of control. The system holding every message ever sent is becoming the thing everyone fears touching most.
177 → 72 nodes
9-day migration (was 3-month est.)
3.2M records/sec migrated
+1
4T+ messages moved