The WSO2 Enterprise Integrator has a mediator called throttle that is useful to restrict the use of the services or give priority to specific groups of users defined by IP addresses or domains.
Here's the syntax:
<throttle [onReject="string"] [onAccept="string"] id="string"> (<policy key="string"/> | <policy>..</policy>) <onReject>..</onReject>? <onAccept>..</onAccept>? </throttle>
We can divide the mediator into three sections:
- Policy definition: Here's where we define the policies to apply to the incoming requests. The policies can be written in-line or referred in the registry.
- On rejection: When a request does not follow the rules defined in the policy, the mediators in this section will be triggered. In this section, we usually ...