Skip to content

[Backend] Add Rate Limiting to Public FastAPI Endpoints #91

@jpdevhub

Description

@jpdevhub

Description

Our production FastAPI backend currently accepts unrestricted requests. To prevent abuse of our Hugging Face inference resources and Supabase database, we need rate limiting.

Tasks

  1. Install slowapi in the backend API.
  2. Configure a rate limiter (e.g., 20 requests/minute per IP) for the /api/v1/scan-auto and /api/v1/maps/markets endpoints.
  3. Return clean 429 Too Many Requests JSON responses when the limit is hit.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions