Open JamesRunnalls opened 1 month ago
Add some middleware to limit the number of calls to the API from a single IP address. This won't prevent a DoS attack but should prevent accidental overload from individuals.
https://www.youtube.com/watch?v=2-exKF2Vszg
https://github.com/laurentS/slowapi
https://thelearningfellow.medium.com/quick-and-easy-rate-limiting-for-fastapi-6be34e8102a7
Might need to add Redis for keeping track of events, this could be included in the docker-compose
Add some middleware to limit the number of calls to the API from a single IP address. This won't prevent a DoS attack but should prevent accidental overload from individuals.