Throttling
Introduction
Protect your webhook endpoints from abuse and ensure fair resource usage with Webhooked's comprehensive rate limiting capabilities.
Rate Limiting Algorithms
Sliding Window
throttling:
enabled: true
maxRequests: 1000
window: 3600 # 1 hour sliding windowToken Bucket Algorithm
The default algorithm used by Webhooked:
throttling:
enabled: true
maxRequests: 100 # Bucket capacity
window: 60 # Refill rate: 100 tokens per 60 seconds
burst: 20 # Allow bursts up to 20 requestsHow it works:
Bucket starts with
maxRequeststokensEach request consumes one token
Tokens refill at rate of
maxRequests/windowBurst allows temporary exceeding of rate
Request Queuing
Basic Queue Configuration
Queue Behavior
When rate limit is exceeded:
Request enters queue if capacity available
Waits for token to become available
Processes when token available or timeout
Returns configured status code on timeout
Configuration
enabled
Enable rate limiting
false
true
maxRequests
Max requests per window
-
1000
window
Time window (seconds)
-
60
burst
Burst capacity
-
50
burstWindow
Burst window (seconds)
-
10
queueCapacity
Request queue size
0
100
queueTimeout
Queue timeout (seconds)
0
5
queueTimeoutCode
Status code on timeout
503
503
Common Configurations
API Rate Limiting
Standard API rate limiting:
Webhook Protection
Protect against webhook storms:
High-Traffic Configuration
For high-volume webhooks:
Last updated