oslabs-beta / GraphQL-Gate

A GraphQL rate limiting library with query complexity analysisfor Node.js
http://graphqlgate.io
MIT License
57 stars 2 forks source link

Add retryAfter calculations to TokenBucket and SlidingWindowCounter #89

Closed shalarewicz closed 2 years ago

shalarewicz commented 2 years ago

The TokenBucket and SlidingWindowCounter rate limiters do not return a retryAfter timestamp. This timestamp represents the minimum time at which a new request could be sent so that it succeeds. retryAfter should have the following values: