Queue Limitation Over Time

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.

+4
source share
2 answers

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.

, , API ( , Time X), - , 60 , / .

, , , , , , .

redis

+2

, .

, () . , - , .

: " " . , ( 24- 5000, reset )

0

Source: https://habr.com/ru/post/1526729/


All Articles