Spike Limiter Implementation
Use the spike limiter guidance to identify request spikes, respond to HTTP 429 errors, and keep API traffic predictable.
Signal applies a per-organization spike limit based on your recent API traffic. Follow these steps to recognize when you have hit the limit and respond to HTTP 429 errors.
Overview
Signal APIs use a dynamic spike limiter to protect against sudden, uncharacteristic traffic surges. Use it alongside the concurrency controls and gradual request ramp-up described in the Rate Limit Best Practices.
How the spike limiter works
- Dynamic limits: The system calculates a unique requests-per-minute (RPM) limit for your organization based on your own recent usage patterns. It looks at your 60-minute rolling average traffic and also considers your traffic's variability to distinguish between normal fluctuations and genuine spikes.
- Real-time enforcement: When your request rate exceeds this dynamic limit, the API will respond with an HTTP 429 (Too Many Requests) error. The response will include a
Retry-Afterheader indicating when you can safely retry. - Rolling window: The spike limiter uses a rolling 60-minute window to determine your average and variability, recalculating limits every minute.
Respond to HTTP 429 errors
- Pause and retry: Follow the
Retry-Afterheader if present, or introduce a delay before retrying. - Review your workflow: Follow the Rate Limit Best Practices, including appropriate concurrency and gradual request ramp-up.
- Monitor: If you continue to experience throttling, review your traffic patterns to identify any unexpected spikes or irregularities, and adjust accordingly.
Summary
- Adhere to concurrency and ramp-up best practices
- Monitor your API usage and system performance
- The spike limiter is designed to protect all customers and ensure fair access
- If you have questions about optimizing your workflow, contact support for guidance
Updated 10 days ago
Did this page help you?
