Rony Pozner
Rony Pozner10mo ago

Ratelimit Queries

I would like to ratelimit queries and action, not only mutations. Is it possible?
1 Reply
ian
ian10mo ago
what is your goal in rate limiting queries? cost savings? when parameters don't change, they are cached and don't incur database bandwidth. for actions you can call a mutation at the start - ideally at the same time you're fetching other data and doing any logic around authorizing the action, so you have a green light after that to do all the work. If you are scheduling the action, you can rate limit before you schedule it, so it doesn't even happen if you didn't want to allow it

Did you find this page helpful?