API Response Before Microflow Execution Completes?
0
Hey All, I have a Mendix API that gets called from an outside source. The API is connected to a microflow that does a fair bit of data processing, and once its done, it sends back a response. The length of time the microflow takes to execute really depends on the body of the request, and in testing I was never really sending too much data, but now that we're sending a bit more I'm noticing (when testing from Postman) that even after the microflow finishes, Postman never receives a response and just continues to spin. Because our "Success" response doesn't really depend on the data processing itself and more that the input sent is valid, I'm wondering if there is a way I can send the response once the data is validated and then continue with the processing so the calling source doesn't have to wait as long. As far as I can tell, the only way to be able to do this would be to separate out the "processing" piece into a different microflow connected to a scheduled event. Any way I can do it all in one microflow, or any other thoughts? Thanks!
asked
Ben Brennan
1 answers
1
You don't need to use a scheduled event, you could also use a task queue.
So your API microflow can validate the request data, if it is valid then call another microflow in a task queue to do the processing and return the success response for the API