Читать книгу From Traditional Fault Tolerance to Blockchain - Wenbing Zhao - Страница 55
2.3.1 Pessimistic Logging
ОглавлениеThe most straightforward implementation of pessimistic logging is to synchronously log every incoming message to stable storage before it is executed at a process. Each process can checkpoint its state periodically at its own pace without the need to coordinate with other processes in the distributed system. Upon recovery from a failure, a process restores its state using the last checkpoint and replays all logged incoming messages to recover itself to the state right before it fails.