[PATCH v2] Add rate limit support to API

Lukas Fleischer lfleischer at archlinux.org
Fri Feb 23 05:43:48 UTC 2018


On Thu, 01 Feb 2018 at 11:55:44, 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.
> 
> Signed-off-by: Florian Pritz <bluewind at xinu.at>
> ---
> 
> v2:
>  - Fix column name scheme
>  - Support sqlite
>  - Simplify deletion of old limits
>  - Put DDL SQL in schema
>  - Allow to disable limit by setting to 0 in config
> 
>  conf/config.proto         |  4 +++
>  schema/aur-schema.sql     | 10 ++++++
>  upgrading/4.7.0.txt       | 11 ++++++
>  web/lib/aurjson.class.php | 86 +++++++++++++++++++++++++++++++++++++++++++++++
>  4 files changed, 111 insertions(+)
>  create mode 100644 upgrading/4.7.0.txt

Merged into pu, thanks!


More information about the aur-dev mailing list