Perhaps mapAsync ( http://doc.akka.io/api/akka/2.5/akka/stream/javadsl/Flow.html#mapAsync[T](parallelism:Int,f:akka.japi.function.Function[Out,java.util.concurrent.CompletionStage[T]]):akka.stream.javadsl.Flow[In,T,Mat] ) might come in handy here?
On Tue, Apr 25, 2017 at 10:25 AM, <[email protected]> wrote: > Hello, > > i implemented the example from http://fruzenshtein.com/ > simple-akka-use-case/ and wonder how to implement > this pattern as akka streams. Especially the line for dynamic actor > spawning confuses me. > > files.foreach(file => context.actorOf(FileReaderActor.props) ! file) > > Which pattern in akka streams does what i am looking for? > Broadcast / Merge with a fixed worker pool? > BroadcastHub and MergeHub with an e.g. Actor in between for processing? > > Thanks > Lukas > > -- > >>>>>>>>>> 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. > -- Arnout Engelen *Senior Software Engineer* E: [email protected] T: https://twitter.com/raboofje -- >>>>>>>>>> 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.
