Skip to content

Rate limiting

When push notifications or other messages are sent too quickly, traffic can suddenly surge to your servers, sometimes making your service inaccessible. To prevent this, FlareLane provides a rate limiting feature that paces sends at an optimal rate.

Project-level rate limiting options in the FlareLane console

Rate limiting can be configured at the project level. On the Project page in the FlareLane console, you can choose between two options.

  • Send as fast as possible: No restrictions of any kind on notification sending.
  • Set a rate limit: Configure how many messages to send per minute.

The configured per-minute send rate is converted into a per-second send rate at send time, so delivery proceeds more reliably. The conversion to a per-second rate works as follows.

For example, when sending 1,019 messages per minute, the value is rounded down to 16 messages per second.

(1019 / 60) = 16.98333333...

In practice, FlareLane sends 16 messages per second, which ends up being 960 messages per minute.

16 * 60 = 960

Actual message delivery proceeds at a steady per-second rate, allowing you to make the most of your server resources.