These are chat archives for RBMHTechnology/eventuate
Global-scale event sourcing and event collaboration with causal consistency
I have a generic question regarding eventsourcing.
Here is a simple use case: I need to insert some data into a database. ES expects me to perform some validation (e.g. check uniqueness constraints) in command processing phase, then emit some event(s) and insert data into the database in the event processing phase (and pray that it won't fail). But that implies that I should have a notion of transaction spanning command and event processing phases. Instead, I would like not to perform any validation and just perform insertion in the event phase and handle any errors there, but then I can't reply something to the user since such code can only be in commands. Am I missing something?