Comments (1)
one limitation of the current rate limiter that i know of is that pending requests are not checked before a request is made. if 25 requests are made at the same time with a limit of 20 request, 5 should currently get a 429.
That comment is specifically talking about when the rate limit resets. Assume you have the limit of 10 calls/min. If you make a 2 requests right as the rate limit is about to reset, request A and request B. Response A is sent back with the header saying 10 requests have been made (so the next call will be limited). Response B is sent back with a header saying that 1 request has been made (the rate limit has reset). If response B is processed before response A, then what will happen is that the count will be set to 1, and then set to 10, leading all subsequent calls to be rate limited for a minute.
I believe that 2nd case is not a very likely case, but i believe it is possible, which is why that comment exists.
regarding the issue writing to the tuple, that seems like a pretty clear bug and should be easy to solve.
Can you split this into 2 separate issues? one for the clear bug writing things that are not writable, and one for the fact that pending requests are not tracked?
from riot-watcher.
Related Issues (20)
- Multiple API Keys HOT 1
- 400/401 Client Error HOT 11
- Different behaviour between summoner.by_name and official API HOT 2
- Expecting value: line 1 column 1 (char 0) HOT 2
- Error on matchlist_by_account HOT 1
- API back killParticipation is wrong HOT 1
- Does riot api support multiple ppuids? HOT 2
- Can 'region' be removed? HOT 3
- Add LOL-CHALLENGES-V1 Endpoint HOT 1
- .matchlist_by_puuid is returning the puuid provided instead of the list of matches
- Add the new SEA regions HOT 1
- Package is not pep561 compliant HOT 1
- Can't request for specific match type. HOT 5
- account-v1 getting puuid by_riot_id HOT 1
- champion_master is outdated, updated from encrypted_summoner_id to puuid HOT 1
- Spectator-V4 will be deprecated on April 5 HOT 1
- Asyncio integration? HOT 1
- Rewrite in Rust
- v4/summoners/by-name/ endpoint has been removed HOT 1
- Fix Mutable Default Arguments in Constructor And Correct Type Hints in Constructor HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from riot-watcher.