Re:An Alternative Approach to Rate Limiting
by jdwyah on Thursday April 13, 2017 @06:03AM
(#14105538)
why not? 1000s/min should be NBD.
[ Parent
| on HN ]
Re:An Alternative Approach to Rate Limiting
by stonelazy on Thursday April 13, 2017 @11:05PM
(#14112473)
Really ? In our product, an average user can send request of upto 4000/minute and we have about 1000 users now. Do you think would it be possible to scale ?
Suppose, if maintained a list in redis with sorted time stamp, then for every incoming request i will have to make get query to redis for count of requests in last one minute, one hour, one day (3 calls) and then insert a timestamp for this current request. So, totally 4 requests.
Apart from this suppose if concurrency handling (number of concurrent connections allowed by a particular user) is also built then that will also include additional redis calls. Do i make sense to you ?