skip to Main Content

Redis – Ratelimit in Fastapi

How to ratelimit API endpoint request in Fastapi application ? I need to ratelimit API call 5 request per second per user and exceeding that limit blocks that particular user for 60 seconds. In main.py def get_application() -> FastAPI: application…

VIEW QUESTION
Back To Top
Search