Discord Stores BILLIONS of messages using this database

Поділитися
Вставка
  • Опубліковано 5 січ 2025

КОМЕНТАРІ • 313

  • @CodingWithLewis
    @CodingWithLewis  2 роки тому +79

    Thank you so much everyone for watching this video! If you want to talk more about tech, you are welcome to join my Discord channel (5k+ members)!
    discord.gg/bY6N9z26et
    How do I get Discord to notice me?! 🤔

    • @ompat1l
      @ompat1l 2 роки тому +2

      Hey Lewis, great video, Today WhatsApp crashed in INDIA for some time, can you dig deep into this issue and post a video explaining this, it would be interesting to know how engineers at these tech companies solve these issues in such a short time span

    • @nirmalkumard7102
      @nirmalkumard7102 2 роки тому

      Hi Lewis!
      I'm a civil engineering graduate(2018 passed out) but i love coding. Now I'm studying python on my own aiming to study towards data science. Is it possible that I can get a job in the data science area. Or what should I do to simply enter the IT field? Can you give me any suggestions please.

    • @TheMrkipas
      @TheMrkipas 2 роки тому

      thanks alot for the great content matey.. would love to see video like this .. like how facebook or big social media store their data and how it works so on

    • @chidiebubeiroezindu
      @chidiebubeiroezindu 2 роки тому +1

      Hey Lewis thanks alot for all your videos they've really helped me in my tech journey. Could you please do a mobile app developer roadmap. I'd really appreciate it thank you

  • @CodingWithLewis
    @CodingWithLewis  2 роки тому +91

    Thanks SO much everyone for the kind words ❤️… and the constructive criticism!
    My camera kept going out of focus… my mistake 😅. Also I will turn down the camera shake

    • @pxtrez
      @pxtrez 2 роки тому +2

      those 'effects' look cool actually

  • @Pikachu-oo5ro
    @Pikachu-oo5ro 2 роки тому +520

    This is what UA-cam was made for. Congratulations, good sir. Bless your work.

  • @sulaimandev
    @sulaimandev 2 роки тому +270

    Forget about Discord, think about UA-cam 🤯

    • @CodingWithLewis
      @CodingWithLewis  2 роки тому +81

      Literally wouldn’t be able to comprehend 😳😳

    • @character640p
      @character640p 2 роки тому +3

      down

    • @sulaimandev
      @sulaimandev 2 роки тому +4

      @@character640p bruh

    • @EEBDivyanshgupta
      @EEBDivyanshgupta 2 роки тому +1

      @@CodingWithLewis a video on it???
      Or probably a short

    • @BlueProgamer212
      @BlueProgamer212 2 роки тому +1

      @GGLVXD bro you're familiar... are u from ISTREEM's server?

  • @weiSane
    @weiSane 2 роки тому +123

    You should do more of these technical videos. Love the insights . Now I need to choose a weekend project just as an excuse for me to use Cassandra DB😂

  • @SomethingNick
    @SomethingNick 2 роки тому +16

    Would love to see more of these videos, been studying system design and this is way more interesting than the videos I’ve been watching

  • @R5123
    @R5123 2 роки тому +7

    Great video man!
    I'm a developer myself and this video made me realize I should be reading more articles like the one you based this video on. Great work!

  • @nomadontherun_
    @nomadontherun_ 2 роки тому +12

    You lost me around 4:57 but well done. By far this is one of your greatest videos. I know it takes a lot to put these together. Again, great job. Keep up the hard work.

  • @愛
    @愛 2 роки тому +2

    "Wow guys look how cool, Discord is logging all of my private messages and everything i say!!"

  • @stuiedaman
    @stuiedaman 2 роки тому +1

    Oh hey, it's one of those times UA-cam recommends a channel I've never heard of before but turns out to be really good educational content. *Subbed*

  • @ShafterPlay
    @ShafterPlay 2 роки тому +19

    Really great video! Loved how technical but easy to understand it is. The camera shake was a bit too much for me tho.

  • @-_-_-_-_
    @-_-_-_-_ 2 роки тому +18

    I really like your longer content!

    • @CodingWithLewis
      @CodingWithLewis  2 роки тому +6

      Im glad :) they take sooo much longer to make but love doing it

    • @-_-_-_-_
      @-_-_-_-_ 2 роки тому +1

      @@CodingWithLewis But then again it's much more profitable :D

    • @jannatgaoshiqqalb3598
      @jannatgaoshiqqalb3598 2 роки тому +1

      @@CodingWithLewis Bro, what fundamental knowledges do you recommend before learn to code?(my aim is to get into big tech companies and become a good software engineer)

    • @TheHeroIsRisingUp
      @TheHeroIsRisingUp 3 місяці тому

      ​@@jannatgaoshiqqalb3598just get into coding, you'll learn things along the way.

  • @hand-eye4517
    @hand-eye4517 Рік тому

    I love the way your content is made , flows well , gets the points of the topic clearly and concisely . Just had to give you the credit you deserve really quickly and also mention that i haven't been seeing notifications for your videos? strange ill just check the discord more often .

  • @john95685
    @john95685 2 роки тому +51

    Amazing video 😍. Being a beginner in software development, It shows me how much is there to explore in this field.

  • @COOLUKGAMER
    @COOLUKGAMER 2 роки тому +2

    Loved to watch this video. I remember using Discord as a reference for an A-Level project I did and I ended up reading their development blog

  • @kristefanov
    @kristefanov 2 роки тому +28

    Great video. Would recommend diving into a Spotify-based topic. Their engineering blog is quite rich with similar examples and could be a good platform to explain basic concepts from.

  • @QuantumPlatypus42
    @QuantumPlatypus42 2 роки тому +2

    Nice video! Discord is insane. This video reminded me when like 6 months ago discord was down for 1-2 hours.

  • @SeanCassiere
    @SeanCassiere 2 роки тому

    Love these videos on "tech stories from companies".

  • @tiefflieger3320
    @tiefflieger3320 2 роки тому +1

    Insane video! I found you through your Shorts but I love the longer videos!

  • @MisterValiant
    @MisterValiant 2 роки тому +1

    Videos keeps getting better

  • @ash_ekka
    @ash_ekka 2 роки тому +4

    Now this the content UA-cam should push for. Pure gold ♥️

  • @suharsh96
    @suharsh96 2 роки тому +1

    @8:25 You sure about that? AFAIK reading is much more computationally expensive than writing to a DB, especially in NoSQL databases as the indexes has to be updated when data changes in one place.

  • @jordanfarr3157
    @jordanfarr3157 2 роки тому

    You called out the YT algorithm for bringing me here, and uh, yep! Great video! I have been a programmer for 10 years but managed to only skirt around the sides of the database world. This helped clarify that a bit more!

  • @samuelstefancic8050
    @samuelstefancic8050 2 роки тому

    Idk why i am thinking so much about this video, what a amazing work you've done here.

    • @kephiob
      @kephiob 2 роки тому

      👆send a direct message for support and guidance . . .

  • @mostlywhat
    @mostlywhat 2 роки тому

    This is the style I like! Keep up the good work!

  • @INKILU
    @INKILU 2 роки тому +3

    always wondered about this! Thanks for making a video about this 👍🏼

  • @estebanduvanzzDelgado
    @estebanduvanzzDelgado 2 роки тому +3

    You tell the story with so much joy while I as an engineer imagined a rollercoaster of tears, frustration and susfpense in the face of each one of the engineers working to deliver the migration.
    As you correcly said. DB Migrations are the worst of our nightmares

    • @kephiob
      @kephiob 2 роки тому

      👆send a direct message for support and guidance . . .

  • @iamcrabgod2809
    @iamcrabgod2809 2 роки тому

    This video is gold. Though I wanted you to go more in-depth into this , but I liked it. I want more of this and please go more in-depth. I would love it.

  • @jaskidesigns8355
    @jaskidesigns8355 2 роки тому

    Woah, great video mate!

  • @groundingtiming
    @groundingtiming 2 роки тому

    Def nailed this vid Lewis. Follower from the start, you sure grew quick ! Talk about scalability huh!

  • @saramshshrestha7641
    @saramshshrestha7641 2 роки тому +2

    Keep more videos like this coming. Loved it

  • @dailydoseofhalal6767
    @dailydoseofhalal6767 2 роки тому

    Love this type of video! Nice work :)

  • @eshaannilekar3851
    @eshaannilekar3851 2 роки тому +4

    Amazingly explained!Great graphics and attention to detail.. Make more such vids like this

  • @JustPyroYT
    @JustPyroYT 2 роки тому +1

    Great Video! 👍
    Greetings from 🇩🇪 :D

  • @jakeh5852
    @jakeh5852 2 роки тому

    Engineer here who worked on these systems. A lot has changed since 2016. We don't even use Cassandra anymore. We should probably write a new blog post. 😂

  • @Verulyrus
    @Verulyrus 2 роки тому

    this is seriously interesting, as a developer and discord user. I've asked the question 'how the fuck do they do this all?' many many times, and you gave a well explained answer! Amazing work!

  • @codewithguillaume
    @codewithguillaume 2 роки тому

    Soooo Interesting :)

  • @gtmoyo
    @gtmoyo 2 роки тому

    This was awesome, I’m subscribing rn

  • @grimjetram3866
    @grimjetram3866 2 роки тому

    this was really really nice bro as an aspiring backend developer seeing stuff like this and knowing how it works on the backend its amazing lol i was glued to the the screen from the start thanks for an amazing video this makes me push more towards my goal of becoming a backend developer thats just amazing💯💯💯💯💯keep up the good work

  • @Valery0p5
    @Valery0p5 2 роки тому

    "and what if I fill a bucket with tombstones, wouldn't it lead to resource exhaustion?"
    5 seconds later
    "Knew it "

    • @Valery0p5
      @Valery0p5 2 роки тому

      UA-cam, you are the only half decent social network left, these bots are so easy to see, please...

  • @kjl3080
    @kjl3080 2 роки тому

    Really cool video!

  • @tusharverma4202
    @tusharverma4202 2 роки тому

    Loved it Lewis, thank you so much!

    • @kephiob
      @kephiob 2 роки тому

      👆send a direct message for support and guidance . . .

  • @stevepoper8073
    @stevepoper8073 2 роки тому

    Can't believe an app that I use to frequently is so incredibly complex

  • @phil7121
    @phil7121 2 роки тому +1

    So this is why tech companies ask interviewees to invert binary trees

  • @connorradeloff5597
    @connorradeloff5597 2 роки тому

    Great video! I just found your channel, and I'll for sure be going down the rabbit hole.
    If you're willing to accept some feedback, I would consider significantly reducing (or IMO getting rid of) the amount of simulated camera shake in your profile shots. I personally found the amount used in this video just tolerable, but it was becoming hard to watch at some points. A little goes a long way!

  • @kacperkobuc9582
    @kacperkobuc9582 2 роки тому

    Very interesting video, and the jokes are just a cherry on top!

  • @M-ABDULLAH-AZIZ
    @M-ABDULLAH-AZIZ Рік тому

    Amazing explanation mate❤️

  • @Marwin.
    @Marwin. 2 роки тому +4

    This was amazing. Thank you 🙏

  • @artemisfowl127
    @artemisfowl127 2 роки тому

    This was an amazing video, I'm a SWE myself, and everyday I've used this damn god send of an app, I've always wondered how it works so well with millions of users, servers, channels and billions of messages. Do ICloud next!

  • @urvishjaiswal8222
    @urvishjaiswal8222 2 роки тому +2

    Beginner friendly and easy to grasp lewis❤

  • @PriyankRupareliya
    @PriyankRupareliya 2 роки тому

    Beautiful. Too much information in too little time. Pure gold

  • @ashharkausar413
    @ashharkausar413 Рік тому

    Brilliant stuff, ty for sharing!

  • @vigneshshanmugam
    @vigneshshanmugam 2 роки тому +3

    Hi Bro, I learnt how Big data to be managed ❤️🔥 keep doing and rocking
    Love from 🇮🇳

  • @Tnvrahmed98
    @Tnvrahmed98 2 роки тому

    Subbed, great Content.

  • @xslvrxslwt
    @xslvrxslwt 2 роки тому

    I already knew this since the very first day they switched to Cassandra but still watched the video, lol.

  • @MrDesai
    @MrDesai 2 роки тому

    I am a mechanic engineer and I still enjoy your informative videos
    Thank you

  • @AvioInsane
    @AvioInsane 2 роки тому +1

    NoSQL doesn't stand for "No SQL", but for "Not Only SQL".

  • @DiOnFire
    @DiOnFire 2 роки тому

    Amazing video! 👍

  • @ZombieAssassin7777
    @ZombieAssassin7777 2 роки тому +23

    With MongoDB going through many major changes over the years, I wonder if Discord has tried to go back and test the performance of it today.

    • @javierflores09
      @javierflores09 2 роки тому +8

      yeah, no. You don't go back to something that works and has been deeply integrated in your infrastructure like this. They either use Cassadra or fix Cassandra but that's what they got for the end of the times

    • @tonyhart2744
      @tonyhart2744 2 роки тому +1

      mongodb is child toy company, if we talk about planet scaling we talk with vitess or cassandra

    • @ZombieAssassin7777
      @ZombieAssassin7777 2 роки тому

      @@javierflores09 That's blatantly false. You're never stuck with something till the end of times. In the tech field, there's always room for improvement.

    • @javierflores09
      @javierflores09 2 роки тому

      @@ZombieAssassin7777 developers make improvement, companies don't necessarily go along with them. In production you are not changing your underlying infrastructure unless you have a damned good reason to, just look at banks still using Cobol; if it was a startup which isn't yet as established I'd understand but something like Discord can't really handle the weight of these changes anymore, so yes, you are in fact stuck with it

    • @ZombieAssassin7777
      @ZombieAssassin7777 2 роки тому

      @@javierflores09 Still wrong, I work at a bank. Yes we still use Cobol and Mainframe, but are working towards moving off of them and also in the process of changing our database configuration.

  • @DevNetic
    @DevNetic 2 роки тому

    Interesting video. I had this question also for a really long time but never took the time to look into it. Now I have the answer

  • @zhehuizhou
    @zhehuizhou 2 роки тому +1

    Have to point out that it's "sea-lla" instead of "sky-lla". Chatted with folks from ScyllaDB, and Discord is pretty much on Scylla now.

  • @abhaysingh.632
    @abhaysingh.632 2 роки тому

    Very informative insights, and I subscribed 🎉

  • @meu2121
    @meu2121 2 роки тому

    It's amazing!! how u people are helping the whole world . Thanks for ur existence ☺️

  • @cesarlabastida1392
    @cesarlabastida1392 9 місяців тому

    Great video everything well explained

  • @peatmaker1
    @peatmaker1 2 роки тому

    Great video dude.

  • @art4eigen93
    @art4eigen93 2 роки тому

    your cam is constantly moving? It's like you taped while having constant earthquakes and later tried to warp-stabilized it.

  • @aamia2710
    @aamia2710 2 роки тому

    I love the way you broke it down but the artificial camera shake was a little disorienting since i was eating while watching
    Love ur content tho!

  • @bob_pm
    @bob_pm 2 роки тому

    I really liked it! Thanks. Could you make another video but with the Telegram.

  • @agungokill
    @agungokill 2 роки тому

    mongodb then and mongodb now is total different, and i love how mongodb progressed over the year. until... surreal appear on the surfaces

  • @Qwonk
    @Qwonk 2 роки тому +1

    They use a sqlite3 database on an extra laptop

    • @kephiob
      @kephiob 2 роки тому

      👆send a direct message for support and guidance . . .

  • @g4_684
    @g4_684 2 роки тому

    This video is amazing. Loads of information.

  • @HeyFaheem
    @HeyFaheem 2 роки тому +1

    Good Way Of Explaining Sir....

  • @lelouch9609
    @lelouch9609 2 роки тому +1

    This content what I want
    Thanks Lewis ☺️

  • @pauladriaanse
    @pauladriaanse 2 роки тому +1

    Blazing fast 1 year old messages?
    I always have buffering ... its not fast at all for me :(

  • @Viralvlogvideos
    @Viralvlogvideos 2 роки тому

    Wow. This video is awesome. Please make a video on hotstar stack, It was really amazing to see hotstar handling more then 1crore streamers at once during cricket match.

  • @mushroomcraft
    @mushroomcraft 2 роки тому +6

    Back in the day, when Discord engineers focused on improving the platform instead of ruining the platform...

    • @Lark703
      @Lark703 2 роки тому +2

      I’m out of the loop. How are engineers ruining the platform these days?

    • @mushroomcraft
      @mushroomcraft 2 роки тому

      @@Lark703 Well, many ways like the new Android version which is horrible, and checking if your bot's description in the app directory contains "youtube" to unverify it.

    • @OatmealTheCrazy
      @OatmealTheCrazy 2 роки тому +1

      @@mushroomcraft I'm unsure what's wrong with the new Android version other than maybe seeing too many image previews at once when trying to upload

    • @mushroomcraft
      @mushroomcraft 2 роки тому +1

      @@OatmealTheCrazy In a technical sense, it is just the IOS version slapped onto Android, which means that it won't be optimised for Android making it slow and it has lots of stupid problems like I sometimes have to wait up to a couple of minutes for it to connect. None of these things were issues pre-new-android-version

    • @chlorobyte_projects
      @chlorobyte_projects 2 роки тому

      bruh, my phone's specs are like close to top of the line, yet there's this one single gif that makes Discord run at 10 fps. Not even a problem with the gif itself, Firefox and the Photos app handle it very smoothly. Nice "native performance"

  • @dvs6121
    @dvs6121 Рік тому

    7:38 seems like you can test the collision condition before the db reaches scale.

  • @SportSync_official
    @SportSync_official 2 роки тому +1

    great video!

  • @JonBeeee
    @JonBeeee 2 роки тому

    Very informative, thank you!

  • @kamertonaudiophileplayer847
    @kamertonaudiophileplayer847 2 роки тому

    Surprisingly, but paperless receipts use a very similar solution, because they operates with even bigger data.

  • @jannatgaoshiqqalb3598
    @jannatgaoshiqqalb3598 2 роки тому

    Hi Bro, keep going
    Love from Uzbekistan 🇺🇿 (whose grandfather is founder of Algorithm)

  • @AndyChamberlainMusic
    @AndyChamberlainMusic 2 роки тому

    why would you mention an article you are summarizing and then not link it in the description...

  • @lakshman587
    @lakshman587 2 роки тому

    Thanks for the video!!!

  • @NigerianWeeb
    @NigerianWeeb 2 роки тому

    Great video!

  • @kleptotrichy
    @kleptotrichy 2 роки тому

    Very informative video showing the ins and outs of a mega data management platforms!!!!
    I do still wonder what the hell did discord do for their september release on android that made it so much buggier haha
    Good video overall!

    • @trylaarsdam
      @trylaarsdam 2 роки тому

      Afaik they switched to react native from native apps which caused a lot of issues

  • @gabbyes
    @gabbyes 2 роки тому

    nice video bro

  • @comradepeter87
    @comradepeter87 Рік тому +1

    8:24 _"Reading from a database is more computationally expensive than writing to it"_
    Huh? That just doesn't sound correct. Writing requires so much overhead like locking and writing to a disk, whereas reading can be as simple as fetching from disk or even from cache (which needs to be invalidated and updated while writing so another overhead).
    That's a pretty big miss.

  • @NikitaDrokin
    @NikitaDrokin 2 роки тому +4

    Why is the “k” hiding behind Lewis’s head in 0:16?

  • @guillaume5623
    @guillaume5623 2 роки тому

    This is gold!

  • @postnick
    @postnick 2 роки тому

    Thank you for exposing how Cassandra works!!

  • @MainActor
    @MainActor 2 роки тому

    I mean we only have about 300k users in our website & little app combined, and we’re having all sorts of issues with our database, and we’re struggling to keep the thing up and running 😂, let alone having 150 million using your service, it must be a challenging day to day task for the engineers at Discord.

  • @mallikarjunhj8768
    @mallikarjunhj8768 Рік тому +1

    Would like to see more of how they built it

  • @Kat_Boyy
    @Kat_Boyy 2 роки тому +1

    You should do twitch next, how they moved from REST api to GraphQL in 2017

  • @silvankuebler
    @silvankuebler 2 роки тому

    Reading is less expensive than writing in a DB :) This is due to the fact e.g that reading can be concurrent with no problem. You said it the other way around

  • @bhaveshagarwal2795
    @bhaveshagarwal2795 2 роки тому +3

    2:32 no pun intended 😂

  • @Berkeli
    @Berkeli 2 роки тому

    Now do Slack, let's see how they approach similar problems

  • @vicariousviews007
    @vicariousviews007 2 роки тому

    How is Cassandra non-relational but it stores data with a primary key and a foreign key (timestamp)?

  • @rifkiardiansyah616
    @rifkiardiansyah616 2 роки тому

    In my mind now: lets build chat app with cassandra

  • @potsuaye69
    @potsuaye69 2 роки тому +5

    they're doing these amazing stuff yet im using their technology to send memes in general

  • @spyrex3988
    @spyrex3988 2 роки тому

    There is some difference between Cassandra and mongoDB i think something related with the use of MapReduce