Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

How Discord Stores Trillions of Messages - Deep Dive

Hussein Nasser via YouTube

Overview

Dive deep into Discord's engineering journey as they migrate from Cassandra to ScyllaDB to handle trillions of messages. Explore the fundamentals of database engineering, comparing relational and distributed systems. Understand the challenges faced with Cassandra, including hot partitions and garbage collector pauses. Learn about crucial concepts like SnowFlake vs UUID, B+Trees and their interaction with SSDs, and LSM Trees. Discover how Discord rearchitected their backend, implemented data services, and executed the migration. Gain insights into zoned namespaces and walk away with a comprehensive understanding of large-scale message storage solutions in this informative video lecture.

Syllabus

Intro
Relational vs Distributed
The Cassandra Troubles
SnowFlake vs UUID
B+Tree
B+Tree and SSDs
LSM Trees
Hot partitions
Cassandra Garbage Collector Pauses
Changing the Architecture
The Data Services
The Migration
Zoned Named Spaces
Summary

Taught by

Hussein Nasser

Reviews

Start your review of How Discord Stores Trillions of Messages - Deep Dive

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.