Synchronous response to Client before Complete Service Execution

Hi All,

We have a requirement where we are having a REST service which is invoked by an external client.
We just need to set the response and send it over same session and continue with our processing with data received in request in same service.

Is there a way of sending a sync response to calling client in between when service keeps on executing.

Thanks,
Amit

Take the request in your REST service, save the request data in DB/ publish to broker. Send response to the caller. Now takes the request data from DB ( if you saved it in previous step ) or the subscribing service (if you publish in earlier step ) continues processing the request.

Thanks,