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

Akka streams exception handling

$
0
0

Hi,

What is the right way to handle exceptions in akka streams? Closing the stream and retrying is not an option as the failure happens due to invalid properties of the stream element: the exception would just occur again upon retry. Instead I would like to send the failing element to some separate sink in order to make the issue visible to the end-users and continue with the next element / keep the stream running.

My concern with what is described in https://doc.akka.io/docs/akka/current/stream/stream-error.html is that i do not get hold of the faulty element upon the exception. Which means in most cases i cannot output element specific information (e.g. element ID) to the end-user.

Thanks.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 1362

Trending Articles