All,
However this example does not take into account concurrent updates on a projection (the first update on the projection could be triggered by an action of another user and as a consequence the call might return too soon).
One way this could be done is by having the new version number of the aggregate being returned after the command is processed. I could then block until the projection is updated with at least that version number or a higher one.
Is there a "supported" way to get this version number (as a CommandResultMessage)?
Robin