lambdaclass / holiday_pinger

Erlang + ClojureScript app to send holiday reminders
https://holidaypinger.com
MIT License
69 stars 9 forks source link

added throttling middleware #168

Closed facundoolano closed 7 years ago

facundoolano commented 7 years ago

Added a global rate for the API and specific rates for the "expensive" endpoints, using the throttle app. The rates are enforced in a cowboy middleware.

Closes #167

Also created a test specific config, to bypass throttling during unit tests. We may end up polishing the config duplication in #157