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
Why in DomainEventsDispatcher do you decide firstly to publish DomainEvents to the specific Handlers and then only save DomainEventNotification into OutboxMessages?
In this case, the first handled commands will save DomainEventNotifications last, and the last handled commands first.
So the order is vice versa.
I saw that you also have OccurredOn but you do not use it during processing DomainEventNotifications in ProcessOutboxCommandHandler.
The only use of this property is in the Test OutboxMessagesHelper class.
In my case, after I used your code I can see that Messages in a Queue are in reverse order of how commands handlers and event handlers were processed.
Isn't it better to save DomainEventNotification into OutboxMessages first and then publish DomainEvents to the specific Handlers?
The text was updated successfully, but these errors were encountered:
Hi, I appreciate your work a lot 💯 👍
I have one question.
Why in
DomainEventsDispatcher
do you decide firstly to publishDomainEvents
to the specificHandlers
and then only saveDomainEventNotification
intoOutboxMessages
?In this case, the first handled commands will save
DomainEventNotifications
last, and the last handled commands first.So the order is vice versa.
I saw that you also have
OccurredOn
but you do not use it during processingDomainEventNotifications
inProcessOutboxCommandHandler
.The only use of this property is in the Test
OutboxMessagesHelper
class.In my case, after I used your code I can see that Messages in a Queue are in reverse order of how commands handlers and event handlers were processed.
Isn't it better to save
DomainEventNotification
intoOutboxMessages
first and then publishDomainEvents
to the specificHandlers
?The text was updated successfully, but these errors were encountered: