Rate Limiting
As an API gateway, pCDN acts as the central host to all incoming and outgoing traffic from client requests. However, this traffic may also contain unwanted requests generated by web crawlers from malicious cyberware, as seen in a DDoS attack, which causes service downtime.
pCDN uses the limit-count plugin to limit the number of API requests sent to the upstream addresses within a given time.
Prerequisites
Ensure to have your login details and a route configured to proceed.
Setting a rate-limit
- Navigate to Plugins from your Stargate dashboard
- Click Traffic control and click Enable from the limit-count card This opens the Plugin editor.
- You can toggle to enable/disable the limit-count plugin
- Enter the required fields like the count and time_window to configure the rate limits.
- Click Submit