diff --git a/throttling/README.md b/throttling/README.md new file mode 100644 index 0000000..293d72b --- /dev/null +++ b/throttling/README.md @@ -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. + diff --git a/throttling/infobip.cfg b/throttling/infobip.cfg new file mode 100644 index 0000000..448677c --- /dev/null +++ b/throttling/infobip.cfg @@ -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 +> +