Toda a documentação
DOCS api / rate limiting

Rate Limiting

How API throttling, request limits, and queue retries work.

Rate Limiting

The API uses Fastify rate limiting on all routes.

HTTP rate limit

  • Limit values are configured via environment variables:
    • RATE_LIMIT_MAX
    • RATE_LIMIT_WINDOW
  • Exceeded requests return:
    • 429 Too Many Requests
    • retryAfter (seconds) in response body

Request size limit

  • Maximum request body: 1 MB

Publish queue retries

Publishing runs through BullMQ with retry policy:

  • attempts = 3
  • Exponential backoff:
    • 1st retry: 5s
    • 2nd retry: 10s
    • 3rd retry: 20s