calling service call in fire and forget pattern

Hi Folks,

I need to make a service call out withing the proxy to call another proxy(which is used for logging) in a fire and forget fashion, i don't want my calling proxy to wait for the response.

Can anyone help me how can i achieve this ? is there any option in service call out policy to achieve this.

Thanks

Vinod BIradar

0 2 1,649
2 REPLIES 2

If your other fire and forget proxy is implemented using REST, you should still get an HTTP response code (but most likely an empty response payload), there shouldn't be any issues in using the service callout for invoking it.

You can do it using Javascript policy, chek here https://docs.apigee.com/api-services/reference/javascript-object-model#making-javascript-callouts-wi..., the key is not to call the request.waitForComplete() method.

Hope it helps