Re: [PATCH] Add rate limit support to API

2018-01-28 Thread Lukas Fleischer
Hi Florian, On Fri, 26 Jan 2018 at 22:02:42, Florian Pritz wrote: > [...] > Here's the number of requests that a single ipv6 address made today in > the last 20.5 hours: 1808234. That's a whopping 24 requests per second > averaged over the time frame. > > Looking for a specific package name in th

Re: [PATCH] Add rate limit support to API

2018-01-26 Thread Florian Pritz
On 26.01.2018 20:39, Lukas Fleischer wrote: > On Thu, 07 Dec 2017 at 23:38:59, Florian Pritz wrote: >> This allows us to prevent users from hammering the API every few seconds >> to check if any of their packages were updated. Real world users check >> as often as every 5 or 10 seconds. > > First

Re: [PATCH] Add rate limit support to API

2018-01-26 Thread Lukas Fleischer
On Thu, 07 Dec 2017 at 23:38:59, Florian Pritz wrote: > This allows us to prevent users from hammering the API every few seconds > to check if any of their packages were updated. Real world users check > as often as every 5 or 10 seconds. First of all, thanks for the patch! Out of curiosity: is t

[PATCH] Add rate limit support to API

2017-12-07 Thread Florian Pritz
This allows us to prevent users from hammering the API every few seconds to check if any of their packages were updated. Real world users check as often as every 5 or 10 seconds. Signed-off-by: Florian Pritz --- Basic idea for a rate limiting solution. Currently the cleanup of old entries is don