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

Domain Fetcher Circuit Breaker & Circuit Breaker Manager #1756

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

jordevo
Copy link
Contributor

@jordevo jordevo commented May 3, 2024

Description

Related Issue

Example

@jordevo jordevo changed the title Feat domain fetcher circuit breaker Domain fetcher circuit breaker May 3, 2024
@jordevo jordevo added the do-not-merge Do not merge label May 3, 2024
Comment on lines +10 to +13
failureCount = 0
failureThreshold = 5 // number of failures to determine when to open the circuit
resetAfter = 50000
timeout = 5000 // declare request failure if the function takes more than 5 seconds
Copy link
Contributor Author

Choose a reason for hiding this comment

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

these default settings can be overridden by passing an options object to the CircuitBreakerManager constructor

@jordevo jordevo changed the title Domain fetcher circuit breaker Domain Fetcher Circuit Breaker & Circuit Breaker Manager May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge Do not merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant