Skip to content

rate-limiting capability

rate-limiting adds a token bucket rate limiter to your Go service as Chi middleware.

  • Rate limiting middleware
  • Per-endpoint configuration

Use rate-limiting on any public-facing API to prevent abuse, brute-force attacks, and runaway clients. Essential for authentication endpoints and any endpoint with significant compute cost.

Requires: http-api

Terminal window
verikt new my-service --language go --cap http-api,rate-limiting
# or add to an existing service:
verikt add rate-limiting

http-api

The Chi router foundation required by this capability.

auth-jwt

JWT authentication — rate-limit auth endpoints tightly.

idempotency

Idempotency keys to safely retry rate-limited requests.