I use an API that is limited to use, say: no more than 10 calls per second and no more than 5000 calls per day.
I handle these calls in the beanstalkd queue processing task. How to limit the processing of these tasks, bearing in mind the limits of the API.
When you use Beanstalkd , you can pause the handset for a few seconds.
When you reserve a task and know that the API call failed during this call, you can pause the handset X seconds.
X seconds
, , API ( , Time X), - , 60 , / .
Time X
, , , , , , .
redis
, .
, () . , - , .
: " " . , ( 24- 5000, reset )
Source: https://habr.com/ru/post/1526729/More articles:Updating an Emberjs application on a route other than the index gives error 404 - javascriptExplain length and clear session storage methods in connection session - javascriptParamiko return code on successful login - pythonvba code to retrieve data from a website - excel-vbaWhy doesn't the N3421 provide a noexcept classifier? - c ++Laravel: Redirect to custom class? - phpBest practice for creating a button in an Android app? - android"Error 87, this option is not recognized in this context", using DISM to enable IIS - iisGet the length of the array that contains element 0 when going to the function - c ++Machine learning model save options - pythonAll Articles