Update throttles and add anonymous throttles
All throttles now use a database-backed cache since that is the only way to do centralized throttling (important for production deployment with multiple workers). We also add default throttles for anonymous users for the entire API.
Showing
- config/settings/base.py 9 additions, 1 deletionconfig/settings/base.py
- gracedb/api/throttling.py 31 additions, 2 deletionsgracedb/api/throttling.py
- gracedb/api/v1/events/throttling.py 1 addition, 0 deletionsgracedb/api/v1/events/throttling.py
- gracedb/api/v1/events/views.py 8 additions, 7 deletionsgracedb/api/v1/events/views.py
Loading
Please register or sign in to comment