Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: rate-limit konnect requests when receiving 429s #705

Merged
merged 1 commit into from
Jul 5, 2022

Conversation

GGabriele
Copy link
Collaborator

No description provided.

@GGabriele GGabriele marked this pull request as ready for review June 30, 2022 12:28
@GGabriele GGabriele requested a review from a team as a code owner June 30, 2022 12:28
Copy link
Member

@hbagdi hbagdi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please get a +1 from @tjasko.

go.mod Outdated Show resolved Hide resolved
utils/types.go Outdated Show resolved Hide resolved
@hbagdi hbagdi requested a review from tjasko June 30, 2022 15:55
@GGabriele GGabriele force-pushed the feat/rate-limiting branch 4 times, most recently from 88b4081 to 2eecede Compare July 1, 2022 07:41
@codecov-commenter
Copy link

codecov-commenter commented Jul 1, 2022

Codecov Report

Merging #705 (b5c967a) into main (e09ecb6) will decrease coverage by 0.22%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #705      +/-   ##
==========================================
- Coverage   43.50%   43.28%   -0.23%     
==========================================
  Files          74       74              
  Lines        8923     8969      +46     
==========================================
  Hits         3882     3882              
- Misses       4671     4717      +46     
  Partials      370      370              
Impacted Files Coverage Δ
cmd/common_konnect.go 7.72% <0.00%> (-0.04%) ⬇️
utils/types.go 14.88% <0.00%> (-5.45%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e09ecb6...b5c967a. Read the comment docs.

Copy link
Member

@tjasko tjasko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes seem sane, however, aren't we waiting on hashicorp/go-retryablehttp#168 to get merged?

utils/types.go Outdated Show resolved Hide resolved
utils/types.go Outdated Show resolved Hide resolved
@GGabriele
Copy link
Collaborator Author

Changes seem sane, however, aren't we waiting on hashicorp/go-retryablehttp#168 to get merged?

That's not a blocker, because the way decK uses the underlying library via go-kong cannot hit that corner case.

tjasko
tjasko previously approved these changes Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants