Rate Limit Theme vs Buy SDK

Solved
Highlighted
New Member
2 0 0

I have a question around the Shopify buy sdk (https://github.com/Shopify/js-buy-sdk) vs creating a theme to be hosted on Shopify. Im struggling to find information around rate limits.

 

Currently I am building a temporary static NextJs headless site for one product. This is going to be promoted via an email that should reach around 150k people. Generally when we do this we have around 100k people visit the website over the next 24 hours. Is there a difference in how shopify would rate limit a theme or a buy SDK checkout? Currently we are planning on using the basic plan as its just a one off product and are trying to limit any issues on release with a Headless build.

0 Likes
Highlighted

Success.

Shopify Staff
Shopify Staff
624 100 114

Hi @obelmont ,

 

There is no API rate limit on Shopify themes or the Shopify Online Store sales channel the themes run on.

 

The Shopify JS Buy SDK is built upon the Storefront API. The Shopify Storefront API does have time based rate limiting - Each Storefront API request has a minimum cost of 0.5 seconds, it has a bucket size of 60 seconds/IP address, and a leak rate of 1/second. Note that the Storefront API bucket is based on the the IP address of the buyer interacting with your store, which means that you will not be throttled due to an increase in buyer traffic.https://shopify.dev/concepts/about-apis/rate-limits#storefront-api-rate-limits

 

Also one thing to note is that both the Shopify Online Store sales channel and the JS Buy SDK use the exact same Shopify Web Checkout - there is no rate limit on the checkout but there is a queue system if too many customers try to checkout simultaneously. I'd also recommend you go through the following document before you start your sale: https://help.shopify.com/en/manual/sell-online/flash-sales

Hassain | Developer Support Specialist @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes
Highlighted
New Member
2 0 0

Hi Hassain,

 

Thanks so much for this detailed response this was exactly the information I need.

I will look though your flash sale documentation to better prepare.

 

Olly

0 Likes