Event Sourcing and Write-Ahead Logging