--
You received this message because you are subscribed to the Google Groups "DDD/CQRS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dddcqrs+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dddcqrs/859AF45D-7467-4F3D-9258-5A3CF5078FEA%40gmail.com.
One thing I really like about how git works is that it persists changes as commits. In each commit is several changes.
--
You received this message because you are subscribed to the Google Groups "DDD/CQRS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dddcqrs+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dddcqrs/88f6aa84-1b3d-4e6a-b671-74936c2076e8%40googlegroups.com.
I think the analogue of ES with git is that, a git commit would be equivalent to a single event. Both are the transaction boundary. Both describe a single complete unit of change in the data.
I think, if you feel the need to group different events together in one session or transaction if you will, then that is a smell that you modelled your events/aggregates wrongly.
The art is to design your events such that every single event stands for one complete transaction.
Or you may think of using the saga pattern when you think the transaction really needs to cross aggregates.
Not saying that is an easy job. But I think what will help you is what you learned when you were working with git. Maybe you can start with basing the name of the events on what you would put in the commit text.
Greetings,
Johan
In ES it usually is like, just as in the task world, what is done is done. If you want to undo something then make a new event that does just that, if that is possible.
Thing with git is that you can view it also as being a single projection that is updated even before the commit. But in ES the projections are usually updated after the commit. So in that world it is hard to undo something that is committed, or try things out before you committed it. The later is probably possible though...
Anyway, why leave git in the first place if it works for you?
On 7 Oct 2022, at 08:20, david....@gmail.com <david....@gmail.com> wrote:
Time just kinda got away from me. I must have slipped into a pandemic wormhole... but I am still interested in this topic. Thanks for the replies.
--
You received this message because you are subscribed to the Google Groups "DDD/CQRS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dddcqrs+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dddcqrs/3681d0e7-9968-496e-aa81-558dc49648cen%40googlegroups.com.