99designs / 99designs/cmdstalk

Circuit breaker for failing downstream resources

Open
#13 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
76
Forks
14
PR merge metrics
No merged PRs in 30d

Description

A common case is that a task queue worker issues a DDoS against a downstream resource (database, website it scrapes, ...). To reduce the impact of such event, a common pattern is to put in place is a circuit breaker.

This issue proposes to add a circuit breaker to cmdstalk. After scouring the Internet of circuit breaker libraries, I suggest using https://failsafe-go.dev/circuit-breaker/ since it has a `RemainingDelay()` method to make it easy to sleep until the circuit breaker becomes half-open again.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.