Grokking the Advanced System Design Interview
Ask Author
Back to course home

0% completed

5. Write-ahead Log

Let's learn about write-ahead logging and its usage.


Machines can fail or restart anytime. If a program is in the middle of performing a data modification, what will happen when the machine it is running on loses power? When the machine restarts, the program might need to know the last thing it was doing. Based on its atomicity and durability needs, the program might need to decide to redo or undo or finish what it had started. How can the program know what it was doing before the system crash?




Like the course? Get enrolled and start learning!