So I have a console app written using laravel 5.5 and I have to make roughly 2400 GET Requests for articles from Helpscout which limits you to 2000 Requests per ten minutes or 600 seconds, and I currently use Guzzle to pool the requests and do 20 at a time.
I am curious if there is a way I could use Laravels Queue system, Rabbit Mq and say do 1900 of said requests and then wait the 600 seconds before finishing the last. essentially chunking the massive amount by x and doing y with in the thresh hold.
I have contacted Helpscout and they said there was no way around the 2000 per 600 seconds
So I am curious what solutions you guys might have that might alleviate me hitting their rate limit. I thought of using PHP's sleep()
method but that seems wrong.
Would a queue system where I could then wait x seconds in between the "chunks" work? or am I over thinking this?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2CjulVV
via IFTTT
Aucun commentaire:
Enregistrer un commentaire