You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -443,30 +461,21 @@ There is more than one approach.
443
461
Several are outlined in the following sections.
444
462
445
463
446
-
==== Rate limit scores
447
-
448
-
Refer to GitHub's link:https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api?apiVersion=2022-11-28#primary-rate-limit-for-authenticated-users[Rate limits for the REST API].
449
-
450
-
451
464
==== Query cost points
452
465
453
-
The link:https://shopify.dev/docs/api/usage/limits#the-leaky-bucket-algorithm[leaky bucket algorithm].
466
+
The link:https://shopify.dev/docs/api/usage/limits#the-leaky-bucket-algorithm[leaky bucket algorithm] represents an algorithmic solution to slow down the processing of multiple requests at once.
link:https://escape.tech/graphql-armor/docs/plugins/cost-limit/[GraphQL Armor] offers a way to limit the cost of GraphQL queries.
459
472
460
473
=== Use timeouts
461
474
462
475
To prevent the API from not responding or falling victim to denial of service attacks, it is feasible to make use of timeouts.
463
-
This way, subsequent queries will not be blocked by a long-running previous query.
464
-
465
-
There are many ways and places to use timeouts.
466
-
Here are a few examples.
467
-
468
-
// examples
476
+
This way, subsequent queries aren't blocked by a long-running previous query.
469
477
478
+
You can set a timeout via the GraphQL Library driver, see xref:driver-configuration.adoc#_transaction_configuration_in_context[Transaction configuration in context].
0 commit comments