How Can I Dynamically Manage API Requests to Avoid Shopify Rate Limit Errors?

This topic was automatically generated from Slack. You can find the original thread here.

Other than using the Execution Controls is there a way to dynamically manage API requests via the response? Shopify limits calls to 2/sec but mine get a 429 response if I go anyfaster than 1/8sec. Upon further reading its related to how significant my enquiries are in terms of data but I’m not sure how to get the informtation back to adjust accordingly. Shopify API rate limits

It seems we’re on the GraphQL version of the API? Shopify API rate limits
so “The response includes information about the cost of the request and the state of the throttle. This data is returned under the extensions key” and “to get a detailed breakdown of how each field contributes to the requested cost, you can include the header 'X-GraphQL-Cost-Include-Fields': true in your request.”

I’m assuming this isn’t new to anyone who’s used APIs for longer than 2 weeks (ie not me). Is it something we can easily incorporate or is it being done aready? Is it even worth doing or should I just stick to 1/8seconds?

I think there’s no easy way to throttle your workflow execution aside from the Execution Controls.