throttle policy for Infobip

This commit is contained in:
Daniel Brahneborg 2025-06-26 12:40:53 +02:00
parent 9e4ba3b6e4
commit ea0fa9de6b
2 changed files with 27 additions and 0 deletions

5
throttling/README.md Normal file
View file

@ -0,0 +1,5 @@
# Throttling policies
As of version 8.0.7, EMG supports flexible throttling policies.
In this directory you can find configurations for some common situations.

22
throttling/infobip.cfg Normal file
View file

@ -0,0 +1,22 @@
# Infobip calls this a Destination Counter Limitator.
# https://www.infobip.com/docs/essentials/support/flooding-mechanism-dcl
# The limits are per 60 minutes, so by setting it to 61 minutes in EMG, they will never be triggered.
CONNECTOR infobip <
...
THROTTLE_OUT=infobip_unique_message
THROTTLE_OUT=infobip_same_message
>
THROTTLE infobip_unique_message <
KEYS=DESTADDR
TIMESPAN=61M
LIMIT=20
>
THROTTLE infobip_same_message <
KEYS=DESTADDR,MESSAGE
TIMESPAN=61M
LIMIT=6
>