Microgateway 10.7 | webMethods Microgateway Help | Policies | Traffic Monitoring | Traffic Optimization
 
Traffic Optimization
This policy limits the number of API invocations during a specified time interval, and sends alerts to a specified destination when the performance conditions are violated. You can use this policy to avoid overloading the back-end services and their infrastructure, to limit specific clients in terms of resource usage, and so on.
This policy only limits the number of API invocations within a single Microgateway instance. That is, the policy is not applicable across Microgateway instances holding the same APIs.
The table lists the properties that are supported for this policy in Microgateway:
Parameter
Description
Limit Configuration.
Rule name
Specifies the name of throttling rule to be applied. For example, Total Request Count.
Operator
Specifies the operator that connects the rule to the value specified.
The operator specified is Greater Than. For example, in this case the throttling rule is applied when the Total Request Count is greater than (exceeds the limit specified for) the value specified in the Value field.
Value
Specifies the value of the request count beyond which the policy is violated.
Note: 
*When multiple requests are made at the same time, it may be possible that this limit applied to trigger an alert is not strictly adhered to. There is no loss observed in the invocation counts data, but there might be a delay in aggregating the count.
*Aggregation across multiple Microgateway instances is not supported. Aggregation is done at the instance level and the same is considered for throttling limit.
Destination
Specifies the destination to log the alerts.
You can have one of the following required options:
*API Gateway
*Elasticsearch
Microgateway does not support destinations other than the ones listed above.
Alert Interval
Specifies the interval of time for the limit to be reached.
Unit
Specifies the unit for the time interval in minutes, hours, days, or weeks for the alert interval.
Alert Frequency
Specifies the frequency at which the alerts are issued.
You can have one of the following options:
*Only Once. Triggers an alert only the first time the specified condition is violated.
*Every Time. Triggers an alert every time the specified condition is violated.
Alert Message
Specifies the text message to be included in the alert.
Consumer Applications
Specifies the application to which this policy applies.