unsoft's avatar

Shopify API Rate limiting

My application is running into HTTP error 429 (too many requests) and I'm looking to find a solution for that. It seems that Queue -> Jobs is the winner. My struggle however is that it doesn't seem to be solving the issue at hand. Users are still running into 429 even after setting up the following:

Redis::throttle('external')->block(0)->allow(2)->every(1)->then(function () {
    $shopify = new ShopifyController();
    $response = $shopify->get($this->store_id, $this->url);
    broadcast(new AppShopifyGet($response, $this->name, $this->user));
}, function () {
    return $this->release(60);
});

Any ideas where I'm going wrong here?

0 likes
2 replies
douglasakula's avatar

What plan is your shopify store running on ? Is it basic or premium ?

Please or to participate in this conversation.