Skip to main content

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

  1. Navigate to Plugins from your Stargate dashboard
  2. Click Traffic control and click Enable from the limit-count card limit-count This opens the Plugin editor. limit-count
  • 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.
  1. Click Submit

Test rate limiting