Skip to main content
Understanding and working with StateSet’s rate limits ensures reliable, high-performance integrations.

Overview

StateSet implements intelligent rate limiting to ensure fair usage and maintain optimal performance for all users. Our system uses a sliding window algorithm with burst capacity to handle traffic spikes while preventing abuse.

Key Concepts

  • Request Quota: Maximum requests allowed per time window
  • Burst Capacity: Short-term allowance for traffic spikes
  • Sliding Window: Continuous evaluation of request rate
  • Adaptive Throttling: Dynamic adjustment based on system load
  • Priority Queuing: Critical endpoints get preferential treatment

Rate Limits by Plan

Rate Limit Headers

Every API response includes rate limit information:

Header Descriptions

Handling Rate Limits

Exponential Backoff Implementation

Circuit Breaker Pattern

Prevent cascading failures with circuit breaker:

Performance Optimization

1. Request Batching

Combine multiple operations into single requests:

2. Response Caching

Implement intelligent caching to reduce API calls:

3. Pagination Strategies

Efficiently handle large datasets:

4. Field Selection

Request only the data you need:

5. Compression

Enable response compression:

Request Prioritization

Priority Queuing System

Monitoring and Analytics

Rate Limit Monitoring

Performance Metrics

Best Practices

1. Implement Graceful Degradation

2. Use Webhooks Instead of Polling

3. Optimize Batch Sizes

Troubleshooting

Solutions:
  • Implement request queuing and batching
  • Cache frequently accessed data
  • Use webhooks instead of polling
  • Consider upgrading your plan
  • Optimize request patterns
Solutions:
  • Use field selection to reduce payload size
  • Enable compression
  • Implement pagination for large datasets
  • Use regional endpoints if available
  • Check network latency
Possible causes:
  • Hitting endpoint-specific limits
  • Burst rate exceeded
  • Account-level restrictions
  • Check rate limit headers for details
Solutions:
  • Increase failure threshold
  • Implement better error handling
  • Check for systematic issues
  • Review timeout settings
  • Monitor API status page

Need help optimizing your integration? Contact api-support@stateset.com or visit our Discord community.