API Design · Senior · Question 19 of 75
What is cost-based rate limiting?
- 1Limiting requests from expensive countries
- 2Charging money per request
- ✓Correct answer: Each request consumes 'points' based on how expensive it is (e.g. GraphQL query complexity), instead of counting all requests equally
Explanation
GitHub's GraphQL API uses a point-based limit computed from the query's cost.