Skip to content

feat (optional): Durable Object for exact in-flight concurrency limit #4

Description

@lex00

The rate limiter (`src/limit.ts`) has a global per-minute breaker over KV. For exact in-flight concurrency capping (shed when N audits are running concurrently), a Durable Object is the right tool. Defense-in-depth; the per-minute breaker covers the abuse case today.

Acceptance

  • A DO caps concurrent/queued audits; excess gets 429.
  • Falls back gracefully if the DO is unavailable.

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