Skip to content

[Queue] Add Rate Limiting on Queue Job Creation #900

Description

@Eniola3321

Labels: queue security redis swagger
Priority: high

Summary

Prevent users from flooding BullMQ with excessive processing requests.

Description

Users should have limits on how many processing jobs they can create within a given period.

Tasks
Define per-user queue limits.
Track job counts using Redis.
Add configurable limits.
Reset counters appropriately.
Reject requests when the limit is reached.
Add tests for rate-limit behavior.
Swagger / API Integration
Document affected endpoints with rate-limit information.
Document 429 Too Many Requests.
Add Retry-After response documentation where applicable.
Add rate-limit error response example.
Acceptance Criteria
Excessive job creation is blocked.
Redis tracks user job limits.
Users receive 429 when limits are exceeded.
Limits are configurable.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions