
How Discord Stores Trillions of Messages - A deep dive
The Backend Engineering Show with Hussein Nasser
00:00
What Happens When You Update an SSD?
Updating an SSD involves a series of steps: the controller finds a new block and writes the data there, invalidates the old data, and changes the pointer in the OS to the new physical location. This process prevents overwriting existing data by moving the updated data to a new place each time, resulting in active and invalid data coexisting. Continuous updates lead to filling up the SSD quickly with stale invalid pages, necessitating a costly operation known as garbage collection to clear the invalid data and erase the erasable unit for new data to be written.
Transcript
Play full episode
Remember Everything You Learn from Podcasts
Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.