Rate limiting for an individual collection or endpoint

default discord avatar
\ ឵឵឵
8 months ago

Wondering if there's a succinct way or a plan to put rate limits on operations to individual collections or endpoints. Right now doing this:

const limiter = rateLimit({...})
app.use("/some/special/endpoints", limiter)
  • discord user avatar
    Payload Team
    8 months ago

    Current rate limiting is for all endpoints, and there is not a way to specify different values per collection. You're the first that has mentioned this. What's the use-case for the endpoint?

Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!


Connect with the Payload Community on Discord



Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.