Is there a way to specify dynamic "weight" for a throttle? #590
Unanswered
severin
asked this question in
Questions (Q&A)
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to rate-limit our login by IP address. Login is possible via traditional REST endpoint but also via GraphQL mutation. I have no trouble to set up a throttle that works with requests to the REST endpoint and GraphQL queries that contain a single login mutation.
However, with GraphQL you can include multiple mutations in a single http request. So if I want to throttle login attempts to 5 per IP per minute someone could submit a single GraphQL request that contains 6 login mutations. Is it possible that I can somehow count this single http request as 6 attempts?
Beta Was this translation helpful? Give feedback.
All reactions