Hi! What is the recommended way to do circuit brea...
# arrow
n
Hi! What is the recommended way to do circuit breakers with arrow? I have a project with arrow core but I am not to eager to add resilience4j, because it brings vavr and it is going to be confusing to mix with arrow.
s
Are you using it with Reactor in Spring Boot?
Does the Resillience4J Reactor dependency also come with VAVR?
we dont use reactor yet
s
Oh I see resilience4j-core uses VAVR.
Give me a second. I’ll try to whip a simple example.
Albeit a small example, but this could be build out to include all features of Resilience4J. I just created a simple
enum
to model the state of my
CircuitBreaker
which wrapped in a
class
to expose a convenient API. I use
Ref
so this can be changed to work with
F
based on
MonadDefer<F>
as well.
n
Awesome 😃 Thanks for helping!
p
lol owned, I didn't know what a CircuitBreaker is
179 Views