Hello, I am working Storefront API. But I am little confused about Storefront API rate limit.
From Shopify:
Storefront API uses aleaky bucket algorithmto enforce itsrate limit. Unlike most Shopify APIs, however, this limit is enforced on the IP address of the buyer, not the ID of the merchant’s shop.
Here, I understand It’s time based limit. Minimum 0.5s per request and 60s per user IP. What that means ? User can’t send 120(120x0.5) request for 1 day or 1 minute ?
There’s a bucket example in that page you linked to:
Bucket limit example> > Suppose the client makes several parallel API requests when a user loads your app:> > - 20 simple queries that each take 0.5 seconds or less> - 15 more complex queries that take 1 second each> - 10 highly complex queries that take 2 seconds each> > The total cost would be: (20 ⨉ 0.5) + (15 ⨉ 1.0) + (10 ⨉ 2.0) = 45 seconds.> > In this scenario you would still have 15 seconds’ worth of queries available.
The bucket leaks giving you more time to make further calls so this isn’t a blocker on a day level or anything that extreme. Does that help?