Skip to content

GitHub API rate limit handling #128

@tomellm

Description

@tomellm

The GitHub API uses rate limiting to avoid clients from sending too many requests:
https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api?apiVersion=2022-11-28

When making calls to the Rest API you'll notice the following response headers:

X-Ratelimit-Limit: 5000
X-Ratelimit-Remaining: 4999
X-Ratelimit-Reset: 1712830913
X-Ratelimit-Resource: core
X-Ratelimit-Used: 1

Find a way to make our client code respect these rate limits. Other people probably already solved this problem in Spring Boot apps so make sure to spend some time to investigate existing solutions instead of diving directly in code.

Resilience4j optional. Maybe as a separate ticket.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions