Case: how Discord stores trillions of messages

The core idea

A message store has to serve both a crowded channel and a quiet conversation whose latest messages are months old.

Discord's database history shows why those two reads can stress different parts of the same system.

In this lesson

  • What they had
  • What broke, or would not scale
  • The numbers they published
  • The decision
  • What changed after
  • Fundamentals used

Continue reading

Pro unlocks video lessons, visual walkthroughs, full notes, diagrams, case studies, and implementations across the System Design archive.