DEV Community

Discussion on: The Circuit Breaker Pattern

Collapse
 
frenchcooc profile image
Corentin

Hi Rémy! A queue is definitely a great way of handling external requests.

The code sample here considers that the API requests are made from the application (and not from a queue). This is a common pattern amongst many applications.

But I think that the code sample could apply to a custom-made queue on which you would add a circuit breaker.