I have a particular scenario, can someone help me find the correct way to deal with it?
Suppose there are 1000 users using the policy “A” which applies:
- rate limit of 10 requests per second
- quota 60 requests per minute
A certain special user(1 user out of the 1000 registered users) need to consume at a rate of 60 requests per second(with same quota of 60 rpm as before) otherwise he will not be able to consume his full quota during peak time.
I need to set separate rate limit to that certain user so that he can consume at a rate of 60 requests per second.
Two methods I see are:
- If policy “A” is partitioned for rate limit I need to set rate limit in every key as 10 request per second and set rate limit in that certain user as 60 request per second.
Issue here is that I have already applied the partitioned policy “A” in every key and I need to set rate of 10 rps in 999 keys also in order to set the rate of 60 rps for that 1 user.
- I can create a separate policy “B” for that single user.
Issue here is I need to create a duplicate policy for just one user with a single change in rate alone.
What will be the best method to approach this?
As we can see both ways I have in hand has got disadvantages. Is there any better approaches for this?