Posted: 12 Mar 2018 9:06 EDT Last activity: 13 Mar 2018 9:56 EDT
Call Connector Activity Asynchronously
We have a requirement to call a REST API. Service takes 1 min to give back the response. But for a better user experience we have decided to call the connector activity asynchronously i.e. in another thread. When I am using the Queue <Activity-Name> to invoke the connector activity in a different thread, it's not executing that activity instantly and hence we are not able to instantly send the request to service which is causing a delay of 6-7 mins. Is there any way to make the other thread invoke the connector activity instantly ?
There may less number of threadpoolsize which is causing the issue, so please check agent/threadpoolsize value in the prconfig.xml file or Dynamic System Settings appropriately based on concurrency needs.
Or you can configure connectors to use queued execution, if service taking more time.