How to configure the Invoke REST API activity to use persistent HTTP connections

How to configure the Invoke REST API activity to use persistent HTTP connections

book

Article ID: KB0081353

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for REST and JSON 2.1.0,2.0.0

Description

Please follow below steps to configure the Invoke REST API activity to use persistent HTTP connections:

Issue/Introduction

How to configure the Invoke REST API activity to use persistent HTTP connections

Environment

All Environment

Resolution

Please refer below properties in the to use persistent HTTP connection with Invoke REST API:

bw.plugin.http.client.usePersistentConnectionManager
This property specifies that a pool of HTTP connections to each HTTP server must be created for the connections to be reused by the Invoke REST API activity.
This property enables persistent connections for all non-SSL Invoke REST API in that ActiveMatrix BusinessWorks engine.
When this property is set to true, a pool of connections is created for each HTTP server that Invoke REST API connects to.
The total number of connections in the pool is limited by the bw.plugin.http.client.maxTotalConnections property.
The number of connections for each host (each HTTP server) is limited by the bw.plugin.http.client.maxConnectionsPerHost property.
The default value of this property is false.

bw.plugin.http.client.usePersistentConnectionManagerForSSL
This property specifies that a pool of HTTPS connections to each HTTP server must be created for connections to be reused by the Invoke REST API activities.
This property enables persistent connections for all SSL Invoke REST API in that ActiveMatrix BusinessWorks engine.
When this property is set to true, a pool of connections is created for each HTTPS server that Invoke REST API connects to.
The total number of connections in the pool is limited by the bw.plugin.http.client.maxTotalConnections property.
The number of connections for each host is limited by the bw.plugin.http.client.maxConnectionsPerHost property.
The default value of this property is false.

It's a BW property but will impact Invoke REST API. It's use for preventing a connection from breaking intermittently and keep communication instead of opening a new connection for each new request.