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

Throttle health checks to 1 request per second. #26

Closed
wants to merge 6 commits into from

Conversation

SamirTalwar
Copy link
Contributor

Multiple requests made during the throttle period will be batched together.

This uses a home-grown throttle; it probably deserves some scrutiny. I have tried to add a lot of commentary on its internals.

Copy link
Collaborator

@paf31 paf31 left a comment

Choose a reason for hiding this comment

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

I think we need to be careful about adding so much functionality to SDKs. We could specify it and move it into a throttling library (or pick another), or let the developer opt into throttling with a function call, but anything in one SDK should arguably be in all SDKs so I don't think we should solve it just once here.

@SamirTalwar
Copy link
Contributor Author

@paf31, how would you feel about keeping it in this library, but making it opt-in by instructing the connector developer to make their own Throttle in ConnectorSetup and use it explicitly?

@SamirTalwar
Copy link
Contributor Author

Gonna close this; we'll find another way.

@SamirTalwar SamirTalwar closed this Aug 8, 2024
@SamirTalwar SamirTalwar deleted the samirtalwar/throttle-health-check branch August 8, 2024 13:07
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.

2 participants