You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.
As far as I was able to read from the source code, when the events are produced by the aggregate then they are saved in event store and published by the event publisher:
This comes to me with an conclusion that there is no transaction during saving these events to the event store either publishing then on the bus / updating read model.
When save of single event will fail then save of previous ones will not be compensated. Similar situstion os without read model. Can you confirm that?
The text was updated successfully, but these errors were encountered:
You are right, there is no transaction for the events.
But the possibility of having more than one event as a result of a command handler is very low.
I decided to have a list of domain events as result just to give the framework more flexibilty.
Also, it would be something not support by all data providers.
Regarding the read model, if you want it to be immediately consistent you could save it in the command handler along with the write model using the same transaction.
This is a question rather than issue.
As far as I was able to read from the source code, when the events are produced by the aggregate then they are saved in event store and published by the event publisher:
This comes to me with an conclusion that there is no transaction during saving these events to the event store either publishing then on the bus / updating read model.
When save of single event will fail then save of previous ones will not be compensated. Similar situstion os without read model. Can you confirm that?
The text was updated successfully, but these errors were encountered: