[akka-user][deprecated] Akka backoff supervision for HTTP retries

2018-11-05 Thread mandeep gandhi
Hi all, My use case is that I want to make external calls from an actor( on receiving a type of message). If the HTTP call fails, I want to retry exponentially. My current code uses scalaj.http to HTTP calls. How to achieve it? Can Akka's Backoff supervisor strategy be used for the same (or is

Re: [akka-user][deprecated] Re: how to define materialized value

2018-11-05 Thread jurgis . pods
I did send events to the stream, but the counter stayed at 0. Maybe the error was in a different place in my setup. Thanks for the working code example! -- * ** New discussion forum:

Re: [akka-user][deprecated] Akka backoff supervision for HTTP retries

2018-11-05 Thread Brian Maso
I'm sure there are a tons of ways of doing exponential back-off. If your current implementation is Future-based, then this sounds like a job for Future.recoverWith: try defining a Future-returning function that recursively calls itself in Future.recoverWith. And if you are using Akka Streams for