Skip to content

API Throttling - #2487

Open
ihsaan-ullah wants to merge 2 commits into
developfrom
throttling
Open

API Throttling#2487
ihsaan-ullah wants to merge 2 commits into
developfrom
throttling

Conversation

@ihsaan-ullah

@ihsaan-ullah ihsaan-ullah commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Description

  • Set default throttle rates of 100/day for anonymous requests and 1000/day for logged in users
  • plus a per-minute limit on top (60/min anon, 300/min user) so a burst of requests can't slip through under the daily cap.
  • competitions/public/ gets its own separate daily limit (300/day) since it will be used by ChaHub.
  • Added tests for all of this.

Issues this PR resolves

Checklist

  • Code review by me
  • Hand tested by me
  • I'm proud of my work
  • Code review by reviewer
  • Hand tested by reviewer
  • CircleCi tests are passing
  • Ready to merge

1000/day for logged in users, plus a per-minute limit on top (20/min
anon, 60/min user) so a burst of requests can't slip through under
the daily cap. competitions/public/ gets its own separate daily limit
(300/day) since it's hit a lot and shouldn't eat into the shared
anon/user budget. Added tests for all of this.
@ihsaan-ullah ihsaan-ullah linked an issue Aug 3, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

API Security

2 participants