Messages published out of order with command handlers sending commands and events #258
Labels
Priority 1: Must
Highest priority. A release cannot be made if this issue isn’t resolved.
Status: Resolved
Use to signal that work on this issue is done.
Type: Bug
Use to signal issues that describe a bug within the system.
Milestone
In a scenario where Command Handlers publish events and commands, it is possible that the events published by the inner command are published before the ones of the outer command, even though the sequence numbers on these events does show the correct order.
This only occurs when using a Command Bus that processes commands in the publishing thread (such as SimpleCommandBus) and when Command Handlers publish other Commands directly (so not via Events and Event Handlers or Sagas).
The text was updated successfully, but these errors were encountered: