Got it! Thanks a lot! 在 2015年11月19日星期四 UTC-8上午1:57:06,drewhk写道: > > Hi, > > Yes, it will create at least N actors right now (assuming each flow have > at least one operation). > > > and only process 1 element for each actor? > > I don't understand this question. The number of actors is completely > independent of the number of elements (unless you use stream-of-streams > like groupBy), i.e. the same amount of actors will be created if you > process one element or ten million. > > The 2.0 work is about fusing, which will allow you to control where you > want your actor boundaries, declaratively. I.e. you will be able to run > your N-length flow in one actor if that is what you need. > > -Endre > > > On Thu, Nov 19, 2015 at 10:48 AM, Leon Ma <[email protected] <javascript:> > > wrote: > >> Hi, >> >> Assuming I do this: >> >> >> Source.single(A).via(flow1).via(flow2).... via(flowN).toSink(Sink.head) >> >> >> How does the ActorMmaterializer implement this internally ? Will it >> create 1 actor per flow (N actors) and only process 1 element for each >> actor? >> >> >> Thanks >> Leon >> >> >> >> -- >> >>>>>>>>>> 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.
