In our application we create a new ActorMaterializer for each stream, but only 1 ActorSystem and there are no problems with it. In another part of the application we also have a single a single ActorMaterializer that is used to create many streams.
Tal On Wednesday, March 2, 2016 at 11:22:49 AM UTC+2, [email protected] wrote: > > sorry I hitted the send button too early. its just meant as pesudo code. > I was wondering if each > > ActorMaterializer needs its own ActorSystem ? Or can one ActorSystem be used > for many Materializers? > > > Am Mittwoch, 2. März 2016 10:17:32 UTC+1 schrieb √: >> >> I don't understand the question. And looking at the code I don't think it >> would compile. >> >> On Wed, Mar 2, 2016 at 10:15 AM, <[email protected]> wrote: >> >>> system = ActorSystem.create(); >>> >>> new Array[]{"a","b"}.stream() >>> .forEach { >>> final Materializer m = >>> ActorMaterializer.create(ActorMaterializerSettings.create(system).withSupervisionStrategy(decider), >>> system); >>> pipeLine.to(Sink.foreach(..).run(m); >>> } >>> } >>> >>> >>> Now only the last pipeline in the loop works? >>> So I am concluding that each >>> >>> Materializer needs its own actorSystem >>> >>> >>> >>> Am Mittwoch, 2. März 2016 10:12:23 UTC+1 schrieb [email protected]: >>>> >>>> I have the following code >>>> >>>> >>> >>>> new Array[]{"a","b"}.stream() >>>> .forEach { >>>> } >>>> } >>>> >>>> >>>> >>>> >>>> -- >>> >>>>>>>>>> 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 https://groups.google.com/group/akka-user. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> Cheers, >> √ >> > -- >>>>>>>>>> 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 https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
