Skip to content

Conversation

talisman-innovations
Copy link
Contributor

Hi

In our application we can have multiple processes connecting to Shopify simultaneously. In this case the approach currently taken to manage the leaky bucket rate limit doesn't work and 429 errors can be thrown. An alternative approach is to catch the 429 and back off for 0.5 seconds and try again. This works well for us for those times when a small flurry of parallel connection exhaust the bucket.

Regards

Steve

@pheelixdotcom
Copy link
Contributor

pheelixdotcom commented Jan 18, 2018

i'm also highly interested in this. i was about to integrate it myself too. i would at least like to be able to get the http response code.

@talisman-innovations
Copy link
Contributor Author

@tareqtms I've posted an updated, slightly cleaned up version. Any chance you can merge this so I can avoid supporting another fork and other people can use this as well? Regards Steve

@tareqtms tareqtms merged commit ce700a0 into phpclassic:master Jun 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

5 participants