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! Go to 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