akka/akka-core

Improve docs on error handling in Akka Streams

Aperta

#21.349 aperta il 2 set 2016

 (3 commenti) (2 reazioni) (0 assegnatari)Scala (3547 fork)batch import
1 - triagedhelp wantedt:docs

Metriche repository

Star
 (13.277 stelle)
Metriche merge PR
 (Merge medio 8g 19h) (10 PR mergiate in 30 g)

Descrizione

Opening this ticket after some feedback at a meetup. We should discuss the various ways of error / failure handling, this is separate to actually making supervision a good one ( https://github.com/akka/akka/issues/19950 ). People seem to be confused about the various options, and what would be considered idiomatic. I don't think we explain failure vs. "domain error" as well in the docs there. They could use a revamp.

E.g. we should discuss pros and cons of passing around Either/Xor instead of failing stages etc. Some examples would be good.

Also, note to self, the reason users were passing around Xors were that they wanted to report metrics about that in a centralised place (in one stage). This would have not been needed if we could monitor a stream for count of failures etc.

Guida contributor