How Discord Stores TRILLIONS of Messages

  Рет қаралды 654,384

Coding with Lewis

Coding with Lewis

Күн бұрын

Have you ever wondered how Discord is able to store trillions of user messages without breaking a sweat? In this video, we'll take a deep dive into the technologies and strategies that Discord's software engineers use to manage such a massive amount of data.
SOURCE: / discord
Discord is one of the most popular communication apps in the world, with over 250 million users and counting. With such a large user base, Discord's servers receive an enormous amount of messages every day. To store all these messages, Discord employs a distributed database system that runs on hundreds of servers worldwide.
This system uses a variety of modern database technologies, including Cassandra, Redis, Elasticsearch and most recently: ScyllaDB to ensure that messages are stored reliably and efficiently. These databases are designed to handle huge amounts of data and provide fast read and write capabilities, making it possible for Discord to scale to millions of users without compromising performance.
So if you've ever wondered how your messages are stored on Discord, or if you're just curious about how modern database technology works, this video is a must-watch. Join us as we explore the world of distributed databases and learn how Discord's software engineers keep trillions of messages organized and accessible for millions of users around the world.
👻 MY NEW STARTUP: www.caspr.ai/
MY NEWSLETTER 💌
thebetter.dev
------
CONNECT WITH ME ON SOCIAL
📸 Instagram:
/ lewismenelaws
🎚TikTok:
/ lewismenelaws
🐣 Twitter:
/ lewismenelaws
--
My gear 💻
liinks.co/lewismenelaws
-----
TIMESTAMPS ⏰
0:00 Intro
0:38 The BackStory
1:46 Cassandra Troubles
4:09 Change Architectures
6:28 Data Services
8:57 The BIG Migration
10:35 Where It's at now
11:40 What we can learn from this
12:46 Thanks for watching and subscribe :)

Пікірлер: 586
@CodingWithLewis
@CodingWithLewis Жыл бұрын
Thanks for watching this video :) What company would you like me to cover next?
@infinitelancer4612
@infinitelancer4612 Жыл бұрын
Reddit
@ExplodeCode
@ExplodeCode Жыл бұрын
Do How ExplodeCode is cool. naa do snapchat or instagram or something based with pictures
@adill6295
@adill6295 Жыл бұрын
Rust roadmap
@akvamsikrishna5535
@akvamsikrishna5535 Жыл бұрын
How telegram makes money and how it stores as much as data like discord and much more (you too will get more questions once you start to think how telegram is able to do it 😅)
@akvamsikrishna5535
@akvamsikrishna5535 Жыл бұрын
And 😅 I want you and forrest knight to have a video together 🥺
@sorteslyngel2k
@sorteslyngel2k Жыл бұрын
How the hell is discord even making money. That infrastructure sounds pretty expensive...
@agentnull5242
@agentnull5242 Жыл бұрын
Nitro 😭
@agentnull5242
@agentnull5242 Жыл бұрын
Bloody expensive too
@lucachiapello6454
@lucachiapello6454 Жыл бұрын
Data
@tonik2558
@tonik2558 Жыл бұрын
Venture capital is one hell of a drug
@MtTheToto
@MtTheToto Жыл бұрын
They are not making money. Welcome to capitalism
@jamoncitovideos
@jamoncitovideos Жыл бұрын
This types of videos are great. It's not common to face scenarios that have this massive scale and it's great to get to know how they have been handled before by other engineers
@puspamadak
@puspamadak 11 ай бұрын
The engineering was truly awesome. Have to salute the engineers as well as SyllaDB team for such a great product.
@ryojikn
@ryojikn Жыл бұрын
This is amazing, please keep going. Such an amazing source of knowledge and inspiration in a perfect method for better engineers
@5095smf
@5095smf Жыл бұрын
Nice! I love databases and learning more about them, great video.
@coolxify
@coolxify Жыл бұрын
😂 same
@staticobjx7232
@staticobjx7232 Жыл бұрын
Hi Lewis, I discovered your channel thru YT Shorts, but I like this format a little better, not only it dives into architectural problems and solutions, in my opinion it is not rushed. Also, awesome graphics! Thanks a lot and more power to your channel.
@nerduser1000
@nerduser1000 Жыл бұрын
The type of content I love to watch thank you lewis! Had this question for Reddit how reddit saved and would love to know how discord works
@demin-e
@demin-e Жыл бұрын
No © symbol next to “Rust”? Lawsuit is already being filled
@wonkywonky6307
@wonkywonky6307 Жыл бұрын
This is fantastic! Congratulations to all those amazing engineers and congratulations to you for making this great video. Thank you for bringing this content to us.
@vaggelis_best
@vaggelis_best Жыл бұрын
11:24 Poor Descord engineers😢 They are stressing even HARD
@Raul-pg1pf
@Raul-pg1pf Жыл бұрын
lmao
@nemzyxt
@nemzyxt 11 ай бұрын
Whoa! This is so enlightening, thanks Lewis! The engineers are doing really great work bts
@AdoSean
@AdoSean Жыл бұрын
Really fascinating video and well made. Thank you!
@walterrodriguez9550
@walterrodriguez9550 Жыл бұрын
great breakdown and description, thank you!
@ryanzspaulding
@ryanzspaulding 5 ай бұрын
I like your funny words magic man. Definitely didn’t understand about 95% of this video but it was really fascinating and well presented
@TheMassgames
@TheMassgames Жыл бұрын
This types of videos are great, and your animations are really on point
@Luxcium
@Luxcium 11 ай бұрын
I am so happy 😁 to see how it goes with your channel and how much your topic is related to more advanced topics
@NaviYT
@NaviYT Жыл бұрын
I was today years old when I learned that Lewis makes long form content.
@joshburger2217
@joshburger2217 Жыл бұрын
as a dev, just thinking about a migration of that scale is anxiety inducing
@My.MusicChannel
@My.MusicChannel Жыл бұрын
This video was perfect omg!! Liked & subscribed, keep it up ❤️❤️
@xenofenus
@xenofenus 10 ай бұрын
This was an incredibly well made video!
@bvorg
@bvorg Жыл бұрын
Everything is perfect. Thanks much Lewis!
@def1nt
@def1nt Жыл бұрын
Very cool format and interesting stories! I wish Discord to find frontend devs as good as their backend team
@cocoiyeah
@cocoiyeah Жыл бұрын
Kudos to the ScyllaDB team! I've been a fan of their product since 2019, and in my opinion, it's better than Apache Cassandra. However, their open-source license limits usage to only five nodes.
@Jecsham
@Jecsham Жыл бұрын
the ydeserve being paid for that product
@dominikmankowski1636
@dominikmankowski1636 Жыл бұрын
Not really. The 5 nodes limit applies only to ScyllaDB Manger, not the OSS database.
@pietrodc0
@pietrodc0 10 ай бұрын
72 nodes per 140mln users = ~1.9 users per node. 5 nodes limit = ~7.72mln users = you must have money for DB licenses 😅
@OT-tn7ci
@OT-tn7ci 10 ай бұрын
​@pietrodcfab but that's not how it scales
@ThatBubbledGuy
@ThatBubbledGuy Жыл бұрын
Your channel needs to be more popular. This content is the only thing that motivates me to write some code after running into an error.
@justingolden21
@justingolden21 Жыл бұрын
Love the video and also the short takeaways at the end
@Fingiorstyle
@Fingiorstyle Жыл бұрын
Thank you for this video! Please create more
@peckychicken
@peckychicken Жыл бұрын
Wow discord are really committed to keeping their app up to date
@denitechYT
@denitechYT Жыл бұрын
Aha so now we know how! Great video man!
@BrendAn_RSA
@BrendAn_RSA Жыл бұрын
This is my first video on your channel. Loving it. Awesome video :)
@TNTISGOOD
@TNTISGOOD 4 ай бұрын
agreed, my first video too! :D
@smixqse
@smixqse Жыл бұрын
i love the way the subtitles interpreted scylladb: s db, mes db, solid b, sillydb, facilitydb, silladb, sil a db
@thewhitefalcon8539
@thewhitefalcon8539 Жыл бұрын
still a DB vs no longer a DB
@somnathroy102
@somnathroy102 Жыл бұрын
Thank god yt recommended this. I learned a lot.
@AnushR27
@AnushR27 Жыл бұрын
Great video Lewis 😃. Got to know so much information about Discord databases. Thankyou!
@Skeffles
@Skeffles 4 ай бұрын
Great video. Fascinating to see how they solved this!
@bobtheoutbuilder8552
@bobtheoutbuilder8552 Жыл бұрын
I can imagine reading discord messages from 47 years ago.
@felipheleal
@felipheleal Жыл бұрын
Excellent video 👏🏼👍🏼
@shloktadilkar5536
@shloktadilkar5536 Жыл бұрын
Very nice video Lewis
@nathan0401_
@nathan0401_ Жыл бұрын
This was very fascinating to watch
@costelinha1867
@costelinha1867 Жыл бұрын
Bold of you to mention the Rust language and use it's logo in this video. Considering what the Rust Foundation has been up to recently.... AND YOU SHOW A PICTURE OF THE LOGO IN A DIFFERENT COLOR... oh my god, I hope the foundation doesn't see this.
@CodingWithLewis
@CodingWithLewis Жыл бұрын
🤣🤣🤣
@frogery
@frogery 8 ай бұрын
love the animations on these videos
@roshangamage7749
@roshangamage7749 Жыл бұрын
Great video ❤
@nickhtt
@nickhtt 5 ай бұрын
What a nice video. Thank you very much :)
@JoeyClover
@JoeyClover Жыл бұрын
The concern you described at the end is a well known anti-pattern called the Golden Hammer. Don't get too comfortable with the tools you know and use.
@YosephTeki
@YosephTeki Жыл бұрын
wow very very insightfull !!! thanks for making this video
@AhmedMi1ad
@AhmedMi1ad 11 ай бұрын
Wow I really enjoyed the video, so insightful.
@joker-wr8pt
@joker-wr8pt Жыл бұрын
Sir you're my inspiration these types are useful please bring more like this like how big system works so that we can have real-time understanding
@MultiSciGeek
@MultiSciGeek 7 ай бұрын
This is better than ASMR. Fell asleep in 8 minutes!
@bajagainsatish4828
@bajagainsatish4828 Жыл бұрын
Awesome dude!!!
@IgnitedIce81
@IgnitedIce81 Жыл бұрын
Never realized how incredible the engineering is on Discord
@tanmaypanadi1414
@tanmaypanadi1414 11 ай бұрын
the editing on this channel has exponenetially increased in quality 🤩
@Keys_02
@Keys_02 Жыл бұрын
Great content, please I want to learn about the internet from a developer's perspective what book are you going to recommend for me?
@ojasmittal8381
@ojasmittal8381 11 ай бұрын
This guy basically turned Discord's blog into an interesting video 10/10.
@ninjanape
@ninjanape Жыл бұрын
Great video. Subbed.
@po6577
@po6577 Жыл бұрын
this story are amazing, great motivation to improve myself!
@avonzo
@avonzo 9 ай бұрын
Great video. Great content. Thank you.
@Tarodev
@Tarodev 11 ай бұрын
Great video!
@MistaWu
@MistaWu 9 ай бұрын
That was cool… awesome breakdown…🔥🔥
@varshard0
@varshard0 10 ай бұрын
So informative and entertaining.
@-hackers_industry
@-hackers_industry Жыл бұрын
Could you do "A roadpath to become a software engineer" some time soon?
@Terracronz
@Terracronz Жыл бұрын
Cool video, earned a sub
@willmil1199
@willmil1199 8 ай бұрын
Love this channel
@Joshuahendrix
@Joshuahendrix Жыл бұрын
Really enjoyed this one ☝️
@weiSane
@weiSane Жыл бұрын
I'm waiting for the day discord switches to vector databases when they have to store zetabytes of messages 😂
@nuvotion-live
@nuvotion-live Жыл бұрын
I can see it happening. I’m sure the singularity will shake up technology a lot, and it does seem like vector databases will continue to become more popular
@kumalalalalalalaa7045
@kumalalalalalalaa7045 Жыл бұрын
Love these videos
@awsomevideoperson
@awsomevideoperson Жыл бұрын
I wonder if the issue with the normal Cassandra is really the GC, or the memory pressure Java currently has due go reference types. I suspect user defined primitives and fibers will really make Java a stronger contender in the high performance space
@farhan-momin
@farhan-momin Жыл бұрын
what a video! learning + entertainment
@zuman_one
@zuman_one 5 ай бұрын
Please Keep making such system design videos because I don’t like to read long articles 😂
@javadevelopment6551
@javadevelopment6551 10 ай бұрын
Great video, and I'm left with one question how to find and use the right tools at the right place and at the right time 😅 That something comes with experience or any beginning can also master that?
@pemessh
@pemessh Жыл бұрын
Wow this is an awesome informative video. Please do keep them coming!!
@mukithasan9684
@mukithasan9684 11 ай бұрын
Today i learned a lot about database management how behind the scenes work
@allezvenga7617
@allezvenga7617 Жыл бұрын
Thanks for your sharing
@MyNameIsSalo
@MyNameIsSalo 4 ай бұрын
have never put much thought into discord but they really are at the peak of social media, almost 0 downtime ever and always provides a consistent streamlined experience. I can imagine that they will end up doing many many more database migrations in the future as discord dominates the social media space. Wonder if there will ever be a permanent solution of a database which is truely infinitely expandable.
@musikSkool
@musikSkool 6 ай бұрын
Discord is the perfect combination of Twitter, Facebook, an in-game chat bar, and even Instagram. If you pay them a little you can even treat it like KZbin or Twitch.
@broneverasked
@broneverasked Жыл бұрын
Lewis: *thinking he says NoSQL bad* Me: *says NoSquirrel*
@aze4308
@aze4308 Жыл бұрын
Great video.
@simonkimel3339
@simonkimel3339 Жыл бұрын
This shows that Discord developers are really capable, yet the auto update on Linux doesn't work.
@Tudas
@Tudas Жыл бұрын
Because Linux is literally completely irrelevant, atleast on the consumer market.
@oh-noe
@oh-noe Жыл бұрын
@@Tudas lol so dumb
@lucass8119
@lucass8119 Жыл бұрын
@@Tudas You would think Discord, a company that relies on 100% of their own servers running Linux and is a consumer of open-source products like Apache Cassandra, would put just a tad more care into the linux version.
@Nitidus
@Nitidus Жыл бұрын
​@@TudasI mean, there's the Steam Deck now. It definitely has become a LOT less irrelevant compared to a couple of years ago.
@umaradam3788
@umaradam3788 Жыл бұрын
​@@Tudaswhat are you talking about. The entire consumer market is reliant on Linux. Facts.
@bideshbanerjee5506
@bideshbanerjee5506 Жыл бұрын
I may be wrong but I heard from someone in a livestream that data service layer can be implemented in golang and the latency difference would still be unnoticeable
@rkubapl
@rkubapl 6 ай бұрын
great video
@skiper7795
@skiper7795 Жыл бұрын
I love discord. Best comunicator out there
@TomWhi
@TomWhi Жыл бұрын
Interesting video. I feel sorry for that underused blackboard though… it looked like it was going to be written on about 5 times with not a single mark ever made on it!
@sebobebo10
@sebobebo10 Жыл бұрын
I read the title and immediately thought, “I wonder how much storage space I can take up by just spamming emojis…”
@TheDingsBoms
@TheDingsBoms 10 ай бұрын
Inspiring!
@DemiImp
@DemiImp Жыл бұрын
You just altered the color of the rust logo. That is in violation of their trademark!!! 😂
@Vergilenjoyer
@Vergilenjoyer Жыл бұрын
Subtitles: "Hi, my name is, and" Video: "Hi my name is Lewis"
@Benoit.mp4
@Benoit.mp4 Жыл бұрын
Very interessing !
@god_of_everything9644
@god_of_everything9644 9 ай бұрын
Got urself a sub sir
@orlovchik
@orlovchik Жыл бұрын
thanks for the video!!! the question was in my mind this morning and, what a great recommendation, you gave me a full answer! but I have one more question why discord mobile app is so laggy and slow, while its web and desktop versions works fine
@vanilla-plus
@vanilla-plus Жыл бұрын
Interesting colour choice on the Coalesce... What an interesting hypothesis.
@csabraxas
@csabraxas Жыл бұрын
I feel like you are trying to target newer programmers when you explain very simply concepts but then at the same time you gloss over extremely advanced concepts as if we understand them already. I'm not really learning much. I would love like a 5 part series of this whole thing in extreme detail. How does scaling work? How does spinning up clusters/nodes work, how are requests routed? How does GRPC work.
@tsarprince
@tsarprince Жыл бұрын
Awesome!
@lisibethklair
@lisibethklair 9 ай бұрын
every time I think about discord I get a horrendously awkward flashback to my first situationship :/ when he asked “do u have discord” I replied “about you staying or about you leaving?” 💀
@Dahlah.FightMe
@Dahlah.FightMe Жыл бұрын
Nice Bro :D
@vncntjms
@vncntjms 7 ай бұрын
"what any programmer would want to do when they see something new: changing architectures" I'm guilty.
@SusGus-rf8gm
@SusGus-rf8gm Жыл бұрын
A few years ago, I don't remember why exactly but I had issues my phone plan and I was stuck with worse than dial up speeds for a while. Im talking low kilobytes per second, maybe even bytes. Discord was literally the only "online" app that still worked pretty much normally (besides embeds). That thing is optimized to death
@harrywang4769
@harrywang4769 11 ай бұрын
yeah that's not it. the size of the data being sent and received has no correlation between how optimized the app is. your internet connection works for discord because the amount of data sent by discord is very small. it has nothing to do with app optimization.
@shuaibalghazali3405
@shuaibalghazali3405 10 ай бұрын
Just so amazing
@Loading_Code
@Loading_Code Жыл бұрын
I only watch your videos because your expression are amazing
@Dampfaeus
@Dampfaeus 11 ай бұрын
Nice keyboard!
@toopkarcher
@toopkarcher Жыл бұрын
Very cool
@youtubear2217
@youtubear2217 Жыл бұрын
"2017 was 6 years ago" nooooooo😭
@itsjustsushi2023
@itsjustsushi2023 Жыл бұрын
This could've been the perfect video to advertise your dc
@thewhitefalcon8539
@thewhitefalcon8539 Жыл бұрын
He's got his own data center? Nice
How Instagram Grew to 14,000,000 Users With 3 Devs
13:59
Coding with Lewis
Рет қаралды 153 М.
Discord Stores BILLIONS of messages using this database
11:41
Coding with Lewis
Рет қаралды 183 М.
Sigma Girl Past #funny #sigma #viral
00:20
CRAZY GREAPA
Рет қаралды 20 МЛН
Универ. 10 лет спустя - ВСЕ СЕРИИ ПОДРЯД
9:04:59
Комедии 2023
Рет қаралды 2,6 МЛН
OMG🤪 #tiktok #shorts #potapova_blog
00:50
Potapova_blog
Рет қаралды 17 МЛН
How Discord Stores TRILLIONS of Messages
7:11
ByteByteGo
Рет қаралды 154 М.
50 BILLION MESSAGES PER DAY WITH 32 ENGINEERS | Prime Reacts
14:58
ThePrimeTime
Рет қаралды 434 М.
#WWDC24 Recap for Developers | @SwiftBird
16:30
The Swift Bird
Рет қаралды 1,5 М.
How a Random Programmer FIXED GTA 5
13:09
Coding with Lewis
Рет қаралды 581 М.
How Instagram Stores BILLIONS of Videos
11:39
Coding with Lewis
Рет қаралды 218 М.
how Google writes gorgeous C++
7:40
Low Level Learning
Рет қаралды 794 М.
Discord Employees Review Working at Discord!
11:24
No Text To Speech
Рет қаралды 506 М.
These Apps Cost $140. So I Rebuilt them for FREE.
14:18
Coding with Lewis
Рет қаралды 138 М.
The purest coding style, where bugs are near impossible
10:25
Coderized
Рет қаралды 892 М.
Main filter..
0:15
CikoYt
Рет қаралды 10 МЛН
Хотела заскамить на Айфон!😱📱(@gertieinar)
0:21
Взрывная История
Рет қаралды 3,6 МЛН
#miniphone
0:16
Miniphone
Рет қаралды 3,5 МЛН
Телефон в воде 🤯
0:28
FATA MORGANA
Рет қаралды 1,2 МЛН