Overview
BlockDB enforces rate limits to ensure fair usage and system stability. Rate limits are configured per API key and can be distributed across multiple keys for load balancing. All API responses include rate limit headers that indicate your current quota status.Rate limits are measured in requests per second (RPS). Your total quota can be distributed across multiple API keys, each bound to a specific region for optimal performance.
Rate Limit Configuration
API Key Management
Rate limits are configured per API key through the BlockDB Admin Panel. Each API key can be assigned:- Portion of global rate limit: Distribute your total RPS quota across multiple keys
- Regional binding: Assign keys to specific regions (US, EU, AP) to optimize latency and avoid cross-region synchronization
Burst Tolerance
BlockDB tolerates short bursts up to 1.5x your configured RPS for up to 10 seconds. This allows for traffic spikes without immediate rate limiting, while maintaining overall system stability.Rate Limit Responses
429 Too Many Requests
When you exceed your rate limit, the API returns429 with a Retry-After header:
Error
Backoff Strategies
Exponential Backoff
Implement exponential backoff when receiving429 responses:
Best Practices
Performance Expectations
When staying within your rate limits, you can expect:- p50 latency: 20-50 ms (database response time)
- p99 latency: 150-300 ms (database response time)
Latency targets assume you’re staying within your configured RPS limits. Sustained over-limit traffic may experience higher latency and eventual rate limiting.
Regional Considerations
BlockDB operates regional API gateways to optimize latency and performance. When configuring API keys:- US region: Optimized for North and South American traffic
- EU region: Optimized for European traffic
- AP region: Optimized for Asian traffic
Traffic is automatically routed to the closest regional gateway via GeoDNS. Regional keys help ensure optimal performance and load distribution.
Key Rotation & Management
API keys are managed through the BlockDB Admin Panel:- Create keys: Generate new API keys with custom rate limits
- Rotate keys: Revoke and regenerate keys for security
- Monitor usage: Track rate limit consumption per key
- Key expiration: Keys remain active for your subscription term (configurable by the user)
See Also
- Authorization - Authentication and token management
- Error Codes - Complete error reference
- Service Limits - Detailed quota information