99designs / 99designs/cmdstalk
Circuit breaker for failing downstream resources
- Lingua principale
- Go
- Stelle
- 76
- Fork
- 14
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
The issue is about adding a circuit breaker to cmdstalk, a beanstalkd broker written in Go. The suggested library is failsafe-go. Start by examining the main broker logic in cmdstalk to understand where downstream calls (like database or web scraping) are made. Look at the failsafe-go documentation for circuit breaker usage, particularly the RemainingDelay method. Determine where to integrate the breaker to wrap calls that could fail. 'Done' means the circuit breaker is integrated and tested, preventing DDoS on downstream resources.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- go
- Ambito
- backend, cli, tooling
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100