Skip to content

Rate Limit #34

@antoniocheltenham

Description

@antoniocheltenham

Observation

Various solutions pull data from Okta and due the increase api calls to this service we are hitting rate limits.
However Okta provides information in its header to help determine when we are approaching the limit.

Ref: https://developer.okta.com/docs/reference/rl-best-practices/

Example of Rate Limit header with org-wide rate limit

HTTP/1.1 200
Date: Tue, 27 Jan 2018 21:33:25 GMT
X-Rate-Limit-Limit: 600
X-Rate-Limit-Remaining: 598
X-Rate-Limit-Reset: 1516308901

Solution

Add logic to back off for x time when X-Rate-Limit-Remaining value is less than x ( I am thinking about 10 )
We can also pair with the X-Rate-Limit-Reset value to determine the reset period as well.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions