The Backend Engineering Show with Hussein Nasser cover image

How Discord Stores Trillions of Messages - A deep dive

The Backend Engineering Show with Hussein Nasser

00:00

How to Store Twelfths of Messages in 2017

The all the data is in one instance for relational database. You can scale horizontally by Having replication, you know have one master rider that receives rights and then have many read replicas. As The master node receives rights the wall changes or the transaction log changes will be pushed down to the replicas. So as at its simplicity and we So predictability as a single instance Now if you want you can go further than that and Shard if you want by actually splitting the data into multiple Databases. That model in the original model Everything isn't those replicas all theData is there and there is no Oh, this database has only half of the data and this that is has the other half now

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app