Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved


Chapter 9 Throttles : Payload Size Throttles

Payload Size Throttles
Using TIBCO API Exchange Gateway, you can create throttles based on the size of a payload in the message. For payload size throttles, the throttle count for a throttle is incremented as per the size of the payload in the message.
For the rate and quota throttle types, define the throttles based on the payload size as follows:
For the payload size throttles, define a throttle counter to specify the message type for which the payload size is calculated. For example, if the throttle counter is defined as Input Payload Size, the throttle count is incremented by the payload size of the request message. The throttle count is incremented by the payload size of the response message if the throttle counter is defined as Output Payload Size.
Payload Size Throttle Types
Based on the throttle counter value, the payload size throttles can be any of the following subtypes:
Specifies that the throttle count for a throttle is incremented by the size of the input message (that is, request message).
Specifies that the throttle count for a throttle is incremented by the size of the output message (that is, response message).
Specifies that the throttle count for a throttle is incremented by the sum of the size of input and output message (that is, request and response payload).
For example, you can define a payload size throttle T2 as follows:

 
Throttle Name: T2
Throttle Type : Rate
Throttle Interval : 10 seconds
Throttle Max Count: 10000
Throttle Counter: Input Payload Size

 
For this throttle T2 configuration, the Core Engine allows 10000 bytes of request payload size in 10 seconds. For instance, if the first incoming request has a payload size of 5000 bytes, the Core Engine performs the following actions:
If the second request received after 3 seconds has a payload size of 5000 bytes, the Core Engine performs the following actions:
If the third request received after 2 seconds has a payload size of 1000 bytes, the Core Engine performs the following actions:
Configuring Payload Size Throttles
The payload size throttles are configured using the Config UI. You can configure the throttles for the payload size of request, response, or both request and response messages.
To configure the payload size throttles, follow these steps:
1.
2.
3.
4.
Click the MONITORING tab on the right hand side.
5.
Click the Monitors tab.
6.
Configure Payload Size Throttle for Request Message
To configure the payload size throttle for a request message, configure the Throttle Counter as Input Payload Size for a throttle configuration.
Configure Payload Size Throttle for Response Message
To configure the payload size throttle for a response message, configure the Throttle Counter as Output Payload Size for a throttle configuration.
Configure Payload Size Throttle for Request and Response Message
To configure the payload size throttle for both the request and response message, configure the Throttle Counter as Transaction Payload Size for a throttle configuration.
 

Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved