99designs / 99designs/cmdstalk

Circuit breaker for failing downstream resources

Abierto
#13 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Go
Estrellas
76
Forks
14
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
go
Área
backend, cli, tooling
Tipo de issue
Nueva funcionalidad
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.