AxonFramework / AxonFramework

Framework for Evolutionary Message-Driven Microservices on the JVM
https://axoniq.io/
Apache License 2.0
3.32k stars 790 forks source link

Return position of last applied event after Command Handling #3087

Open smcvb opened 2 months ago

smcvb commented 2 months ago

Feature Description

Command handling, whenever it resulted in new events being applied, should carry the position of the last event it generated. By doing so, dispatchers of the command are notified that "your model has been updated until position X."

This knowledge is valuable, as it will allow the dispatcher to share this for use during querying. Thus, the query could carry this position, essentially noting "I want this query model to be at least up to date to position X."

Although this does not resolve the existence of Eventual Consistency at all, it should simplify the user's implementation for this greatly. Note that this issue is blocked until #1740 has been implemented.

Current Behaviour

The position of the last applied event is not returned.

Wanted Behaviour

The position of the last applied event is returned.

smcvb commented 2 months ago

Added the status "blocked" since #1740 should be in place before we can start working on this issue.