hivesolutions / appier

Joyful Python Web App development
http://appier.hive.pt
Apache License 2.0
126 stars 22 forks source link

Request Limit #56

Open joamag opened 2 years ago

joamag commented 2 years ago

Description

It's important to have a mechanism that allows control of the number of requests per time unit. This will provide a way to control an unintentional (or intentional) DOS.

Implementation

Create a decorator appier.requests that receives the number of requests per minute allowed for the action method in the controller.

The implementation should take inspiration from PreflightPart.

Inspiration