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

Make backend CB individually configurable and separate cascade #87

Merged
merged 1 commit into from
Feb 23, 2023

Conversation

masih
Copy link
Member

@masih masih commented Feb 23, 2023

Refactor backend instantiation such that circuit breaker backends are individually configurable. Reflect changes across the repo.

Add the ability to check if a backend matches a request before attempting to call it. This avoids response slow-down caused by slow backends early in the chain

Introduce a separate configuration to mark cascade lookup backends with explicit matcher in order to avoid routing all requests to them.

Relates to:

@masih masih requested a review from willscott February 23, 2023 15:08
Refactor backend instantiation such that circuit breaker backends are
individually configurable. Reflect changes across the repo.

Add the ability to check if a backend matches a request before
attempting to call it. This avoids response slow-down caused by slow
backends early in the chain

Introduce a separate configuration to mark cascade lookup backends with
explicit matcher in order to avoid routing all requests to them.

Relates to:
 - #86
@masih masih force-pushed the masih/cb_per_backend branch from 5b9d1d9 to 9c8b29f Compare February 23, 2023 15:18
@masih masih merged commit 5ab5f8f into main Feb 23, 2023
@masih masih deleted the masih/cb_per_backend branch February 23, 2023 16:19
masih added a commit to ipni/storetheindex that referenced this pull request Feb 23, 2023
Fix client timeout to be maximum of streamin/nonstreaming timeout.

Reduce non-streaming timeout to 2 seconds in order to reduce downstream
timeouts for clients. If a backend is slower than 2 seconds it is
already too slow and users should use streaming response instead.

See:
 - ipni/indexstar#87
masih added a commit to ipni/storetheindex that referenced this pull request Feb 23, 2023
Fix client timeout to be maximum of streamin/nonstreaming timeout.

Reduce non-streaming timeout to 2 seconds in order to reduce downstream
timeouts for clients. If a backend is slower than 2 seconds it is
already too slow and users should use streaming response instead.

See:
 - ipni/indexstar#87
masih added a commit to ipni/storetheindex that referenced this pull request Feb 23, 2023
masih added a commit to ipni/storetheindex that referenced this pull request Feb 23, 2023
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