Question

9
Replies
2244
Views
Dineshsb1 Member since 2013 25 posts
JP Morgan Chase
Posted: July 29, 2015
Last activity: August 18, 2015
Closed
Solved

Dynamically set the Response timeout in Connectors

Hi All,

We are invoking a REST service from our application which is having issues with handling the load of requests and its taking longer time to response .Since the timeout is configured at our end we see a lot of time out exception.Atleast for now there are no plans to fix the issue on the REST service side.This service gets called from various places and as a work around we want to set the timeout dynamically .For example when invoked from a Batch requestor we want it to be 5 mins and when invoked from a browser requestor we want it to be 30 seconds.When i see the pyInvokeRESTConnector activity its directly taking the timeout value from the rule form.We can of course override the pyInvokeRESTConnector to get the service name and based on the requestor type we can set the timeout within the Java step but just wanted to check if this is recommended and if Pega has any plans to make it dynamic in the future releases.

Thanks

Data Integration
Moderation Team has archived post
Share this page LinkedIn