The reason why I would like to create a materializer per stream is exception handling. Currently it seems not to be intended to have a single exception handler per stream. The Supervision.Decider is something like an exception handler which is bound to the materializer. But when handling exceptions there the stream context is not available anymore except I would assign one materializer per stream.
This is related to the error handling question I've raised here: https://groups.google.com/forum/#!searchin/akka-user/for$20comprehension$20counterpart/akka-user/iXhILBjo2qs/Qz-KnTbQeTUJ I just still do not know where to place error handling code nicely without cluttering the business code with lots of explicit error handling code. Some erroneous inputs should not appear on the output they should be handled in a error handler per stream like known from regular stack programming. Stopping the stream or hiding errors is no option. -Leslie Am Freitag, 7. August 2015 11:30:42 UTC+2 schrieb drewhk: > > > > On Tue, Jul 14, 2015 at 2:18 PM, <[email protected] <javascript:>> > wrote: > >> I could not find anything about the costs for creating an >> ActorMaterializer. >> Is it a cheap operation so I can have individual materializers per stream >> or is it more heavy weight so I should share them between streams? >> > > Why would you like to create a new one every time? What is the benefit > there? There is usually no need to create one for each stream, and while > currently a materializer is rather lightweight, it will not necessarily > remain that way. > > -Endre > > >> >> Kind Regards, >> Leslie Leder >> >> -- >> >>>>>>>>>> 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 [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> Visit this group at http://groups.google.com/group/akka-user. >> For more options, visit https://groups.google.com/d/optout. >> > > -- >>>>>>>>>> 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
