How Discord Stores Trillions of Messages | Deep Dive @hnasr
How Discord Stores Trillions of Messages | Deep Dive  @hnasr
Uploaded March 2023 | Updated November 2026, 11 hours ago
Fundamentals of Database Engineering udemy course (link redirects to udemy with coupon)
database.husseinnasser.com

Discord engineering goes into details of how they migrated from Cassandra to ScyllaDB, improved the performance of their reads and writes and rearchitected their backend to support the new load. It is an interesting episode lets get into it

0:00 Intro
1:50 Relational vs Distributed
7:00 The Cassandra Troubles
11:00 SnowFlake vs UUID
14:30 B+Tree
19:20 B+Tree and SSDs
25:30 LSM Trees
31:00 Hot partitions
36:00 Cassandra Garbage Collector Pauses
40:00 Changing the Architecture
45:00 The Data Services
55:00 The Migration
1:02:00 Zoned Named Spaces
1:04:00 Summary


Article here How Discord Stores Trillions of Messages

discord.com/blog/how-discord-stores-trillions-of-messages


Fundamentals of Backend Engineering Design patterns udemy course (link redirects to udemy with coupon)
backend.husseinnasser.com

Fundamentals of Networking for Effective Backends udemy course (link redirects to udemy with coupon)
network.husseinnasser.com


Follow me on Medium
medium.com/@hnasr/membership


Introduction to NGINX (link redirects to udemy with coupon)
nginx.husseinnasser.com

Python on the Backend (link redirects to udemy with coupon)
python.husseinnasser.com

Become a Member on YouTube
youtube.com/channel/UC_ML5xP23TOWKUcc-oAE_Eg/join

Buy me a coffee if you liked this
buymeacoffee.com/hnasr

Arabic Software Engineering Channel
youtube.com/channel/UChWZsjdoRvZ0T9QWZOD6UpA

🔥 Members Only Content
youtube.com/playlist?list=UUMO_ML5xP23TOWKUcc-oAE_Eg



🏭 Backend Engineering Videos in Order
backend.husseinnasser.com

💾 Database Engineering Videos
youtube.com/playlist?list=PLQnljOFTspQXjD0HOzN7P2tgzu7scWpl2

🎙️Listen to the Backend Engineering Podcast
husseinnasser.com/podcast

Gears and tools used on the Channel (affiliates)

🖼️ Slides and Thumbnail Design
Canva
partner.canva.com/c/2766475/647168/10068


Stay Awesome,
Hussein
How Discord Stores Trillions of Messages | Deep DiveAsynchronous IO in Postgres 18 | The Backend Engineering ShowHow to route Docker containersThe problem with software engineeringThe genius of Linux Page TablesWhy create Index blocks writesone request = one h2 streamVirtual memory mappings
Hussein Nasser |

How Discord Stores Trillions of Messages | Deep Dive

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER