Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to make a call to target server via Javascript callout?

It's quite straightforward in apigee edge to make a call to a static url from a javascript callout (via httpClient). My query is, how to leverage TargetServers via the javascript callouts. My specific scenario is that I want to make 2 calls in parallel to my backend and mashup the response. Now, I can use Service callouts and still use my TargetServers; however these calls will now be sequential.

Solved Solved
2 6 1,864
1 ACCEPTED SOLUTION

Interesting question I must say .

I don't think there is anyway to invoke target Server from javascript.

There is also no way to make parallel service callouts OOB.

However I think using node.js inside Apigee you can do it , rather easily.

You can probably leverage modules like https://www.npmjs.com/package/node-parallel

View solution in original post

6 REPLIES 6