Handling complete flow of asynchronous message in a single web request
I send data to an IBM MQ from a minimal api controller, but the code that picks it off the message queue is no where near the code that executes in the minimal api controller. The controller basically just initiates the message and returns ok if it put the message on the queue fine.
How can I also have the minimal api controller only send a response if the response to the message put succeeded? It would have to wait until my handler processed the message successfully, but how would i know if my handler did that from my minimal api controller?
1 Reply
in an architecture based on events the update would be asynchronous
you would wait for the event to resolve and send success or failure, and that would update say an ui to show its status
at most there could be a timeout for example if there is no activity in 30 secs then it updates to a warning