Concurrency limit and request backpressure
Caps the number of concurrent requests and queues the rest by priority (visible, then group expansion, then prefetch). The queue drops entries that become irrelevant. The source can also signal overload (HTTP 429 or 503 with retry-after), and the grid slows its request rate in response.
Planned. This page shows the specification from issue #180. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
maxConcurrentRequests is 2, and a queue visualiser shows in-flight and queued requests.
Expected behavior
No more than 2 requests are ever in flight. Visible requests jump ahead of queued prefetch. During simulated overload, the grid pauses for retryAfterMs, shows a 'Server busy, retrying' status, then resumes.
Planned API surface
option: maxConcurrentRequestsoption: requestQueueLimitWindowResult error: { throttle: { retryAfterMs } }api.getRequestQueue()event: backpressureChangedAcceptance criteria
- The number of in-flight requests never exceeds maxConcurrentRequests. (pending)
- Queued requests are ordered by priority, then by distance from the viewport. (pending)
- Queued entries that are no longer needed are removed without being sent. (pending)
- A throttle signal pauses dispatch for at least retryAfterMs. (pending)
- Queue overflow beyond requestQueueLimit drops the lowest-priority entries first. (pending)