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
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:
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