...
throttling.*.sendSms=60/30 (restriction to calls of operation sendSms from any system to 60 requests for 30 seconds)
Property file configuration format and example (from application.properties):
Code Block |
---|
###############################################################################
# Throttling configuration
#
# There the following property names:
# - throttling.defaultInterval: default time interval (in seconds) if not defined by system/operation
# - throttling.defaultLimit: default limit if not defined by system/operation
# - throttling.sourceSystem.operationName, where
# - sourceSystem is specific source system or '*' if any system
# (source system is case-insensitive value from trace header (ExternalSystemExtEnum))
# - operationName is specific operation name or '*' if any operation
#
# Property values (except for default values) have the following format:
# limit [/interval]
#
# Examples:
# throttling.crm.op1=10
# throttling.crm.*=10/40
# throttling.*.sendSms=60/30
###############################################################################
throttling.defaultInterval=60
throttling.defaultLimit=60
throttling.sourceSystem.*=300/60
throttling.*.syncHello=15/60
throttling.*.asyncHello=50/60 |
Configuration via JMX
Throttling parameters is allowed to configured via JMX, for example with jconsole tool:
...