
How Discord Stores Trillions of Messages - A deep dive
The Backend Engineering Show with Hussein Nasser
00:00
Write Write Writes Are Extremely Fast
As you write Write writes are extremely fast the SSD doesn't have to do this Right or everything your writing is actually your data. So you sort and flush So when you flush you write you never ever update this table never it's always an insert so now this as you create more and more and more SS tables this first level gets filled up. And then next step you read a bunch of these tables based on Certain criteria and write them to another larger sets of tables, right? You're not really invalidating anything, right? Like you're always writing in a new place, which is a nice thing Especially if you're writing in sequence DatabaseSSDs love this!
Transcript
Play full episode
Remember Everything You Learn from Podcasts
Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.