I am creating an event and microservices-based e-commerce application. In a traditional monolithic architecture, the registration flow is very simple. Users enter data - > data gets validated - > registration successful message.
How to implement this in AXON since the command flow is separated from query flow and event processing is totally asynchronous. If the UI is calling the create customer microservice in the customer app, it returns immediately and maybe with the aggregate Id for the customer. But how to notify customers that that registration has been successful? What is the solution pattern here?
I think you would have to do something like push down to the client (websocket type of approach), or possibly have the client polling to check when the registration completed.