Parallel service callout calls backend

Hi,

Is there a way to make parallel service callout calls to backend? What i understand is that second service callout will invoke when first one has received the response. I have a use case where i can send both request to backend at same time. I will wait for both response and collate them before sending response to client. if i wait for the response for first call, that will increase the latency time.

Solved Solved
0 2 984
1 ACCEPTED SOLUTION

You can take advantage of asynchronous JavaScript requests, you can fire them in one policy and right after store them in context.session then process the reponses later in another policy.

https://docs.apigee.com/api-services/reference/javascript-object-model

View solution in original post

2 REPLIES 2

You can take advantage of asynchronous JavaScript requests, you can fire them in one policy and right after store them in context.session then process the reponses later in another policy.

https://docs.apigee.com/api-services/reference/javascript-object-model

yes, and here is a community article describing how to do it.