Hi there. I have a question - how to correct handle exceptions using akka streams in follow situation.
Situation: 1) get data using tcp io 2) collect and validate a message 3) send the message to db but there can be timeout exception if db is not available and by business I need to send response message to client - SERVICE UNAVAILABLE. There is implementation: val broadcast = b.add(Broadcast[Result](2)) val merge = b.add(Merge[Message](2)) broadcast ~> pushToDbFlow ~> prepareSuccessMessageFlow ~> merge broadcast ~> prepareFailureMessageFlow ~> merge pushToDbFlow uses "collect" method which wait only SucessResult extends Result and prepareFailedMessageFlow uses "collect" to hadle only FailureResult extends Result. Actually I don't like this way. Graph are complicated for extending and we loose static guarantees when we use "collect" in the flows. Hate this way. Can anyone help me please? -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+unsubscr...@googlegroups.com. To post to this group, send email to akka-user@googlegroups.com. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.