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: add refreshFrequency option for blocking strategy #461

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

nickalie
Copy link

Currently, for initial start blocking strategy always takes at least 5 seconds, before bypassing the request to the target container. Though the container itself may start in half a second, blocking strategy still waits for 5 seconds due to hard-coded refresh frequency.

The PR adds customizable refreshFrequency option to the blocking requests. Works in similar way as refreshFrequency option for the dynamic strategy. For instance, if you set refreshFrequency to 100ms and your container starts in 500ms, the end user will receive response for the very first request in about 600-700ms instead of 5000ms for blocking strategy

@acouvreur
Copy link
Member

Hey @nickalie thanks for that pull request!

@acouvreur acouvreur force-pushed the feature/blocking-refresh-frequency-config branch from d07074f to 30ea44a Compare November 30, 2024 20:57
@acouvreur
Copy link
Member

Some issues
image

Probably from parsing or default value ?

Signed-off-by: Alexis Couvreur <[email protected]>
Signed-off-by: Alexis Couvreur <[email protected]>
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