Rate limiting for an individual collection or endpoint

default discord avatar
\ ឵឵឵
4 months ago
1

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
    denolfe
    Payload Team
    4 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!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

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