Export Rate Limiter
Component Detail
Infrastructure
low complexity
backend
0
Dependencies
0
Dependents
2
Entities
0
Integrations
Description
Infrastructure utility that enforces per-organization rate limits on export requests to prevent accidental duplicate Bufdir submissions. Uses a sliding-window counter backed by an in-memory or Redis store, configurable per organization and export format.
export-rate-limiter
Responsibilities
- Track export request counts per organization within a configurable time window
- Reject requests that exceed the configured threshold with a 429 response and cooldown metadata
- Allow configuration of window size and limit per organization
Interfaces
checkLimit(orgId: string, action: string): RateLimitResult
resetLimit(orgId: string): void
getLimitConfig(orgId: string): RateLimitConfig
Related Data Entities (2)
Data entities managed by this component