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
This leads to an issue, when there is an event (UserSignedIn) which creates another event as a reaction (UserConsentRequested) and they both are dispatched to a single entity (SessionProjection) with the first event (UserSignedIn) actually creating it, and the second event requiring a repository (SessionRepository) query to be routed to the correct target.
As of now, after routing an event to a projection, a DispatchEventToSubscriber command is posted to the System Bounded Context, after which the next event from queue gets dispatched.
This means that upon dispatching two events from the DispatchQueue, when it comes to the second event, the first one is not dispatched, but scheduled to be dispatched in the System Bounded Context.