My understanding of event sourcing