Javascript Policy - Async http call support

Not applicable

Hi,

I have a javascript policy which makes calls to Google Analytics. Since this a background task and the user doesn't care about the result of this policy, i want to make it async.

Is this a valid use case for making a policy async?

Is there any performance impact if i have many async policies with high time limit, say 1 minute?

0 1 1,030
1 REPLY 1

@rajan.veeramani ,

Welcome to Apigee Community 🙂

Yep, I think it's a valid use case & javascript policy supports same.

See related documentation in Apigee docs here that explain how to make async HTTP calls in Javascript policy.

You can also find related article here in community. As long as they are async, only performance impact is executing the policy which is very small & no need to worry about same. Keep us posted if you have any queries.