Quantcast
Channel: Akka Libraries - Discussion Forum for Akka technologies
Viewing all articles
Browse latest Browse all 1367

EventSourcedBehavior with CircuitBreaker

$
0
0

OK, this might be a very stupid question… haven’t used akka for a while… so I’m sorry:

The akka doc describes how to use a circuit breaker with an AkkaActor (see Circuit Breaker • Akka Documentation). So far so good.

I’m using akka typed now and I’m not sure how to instantiate a CircuitBreaker in a EventSourcedBehavior. The constructor requires a scala.concurrent.ExecutionContext and a akka.actor.Scheduler. Not sure where to take that from. I can get a scheduler (although typed) via ctx.getSystem().scheduler()…

Could not find any examples on the web…

Regards
Oliver

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 1367

Trending Articles