A dark evening in Berlin. The river borders a small city park park where a distant human figure walks towards a yellow light in the background.

Event Sourcing in Go: the Event Handler

Recently, I have been working on an event-sourced application built around Command-Query Responsibility Segregation (CQRS). My job was to figure out how to implement a new command in Go. In order to act on a given object, we have to build the current state of that object out of the events that created and modified it. Here I want to show how I have come up with the applier interface to represent the Event logic....

February 3, 2018 ยท Pierre Prinetti