I’ve used ServiceCallout Policy before in asynchronous mode.
However, I can’t find any mentioned of this for ExtensionCallout Policy. Why I wanted to run ExtensionCallout in asynchronous mode is because it’s configured for Cloud Logging.
So I want to call the policy and send out my logs without waiting for any response.
Currently, it took more than 300ms for this policy to execute. Which is not satisfactory since my ServiceCallout Policy in asynchronous mode took less than 1ms.
I’ve even make the code as simplified as possible.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ConnectorCallout name="EC-SendCloudLogging" continueOnError="true" enabled="true">
<DisplayName>EC-SendCloudLogging</DisplayName>
<Connector>cloudlogging-ext</Connector>
<Action>log</Action>
<Input><![CDATA[{"logName":"proxy-{apiproxy.name}","metadata":{"resource":{"type":"api"}},"message":{public.log_event}}]]></Input>
</ConnectorCallout>
Any ideas? Or if this was even possible?
Thank you.