As we are switching the event handling in our application more and more towards tracking event processors but still have a UI that expects a synchronous REST api I was looking into the following example: https://github.com/fransvanbuul/axon-sync-rest-frontend
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)?