Hi Christopher, Since you do not keep any state in your actors and you are not running them on different nodes, actors may not be the best plan here. You could just run your file copying code on multiple futures.
I also found quite an old discussion regarding akka and file operations here<https://groups.google.com/forum/#!topic/akka-user/GDX4bv6q6-w>. Maybe it will give you some ideas. On Wednesday, April 9, 2014 5:00:37 AM UTC+2, Christopher Helck wrote: > > I am new to Akka and am converting an existing program to use it. The > program reads a set of files, processes the data, and writes reports to 20 > files. The data is read and processed sequentially. It seems like a good > project to start with. > > I plan to offload the writing of the files to 20 Actors (they just write > incoming messages to their file -- they block) and my question is is this a > good plan? The mapping of threads to actors is not one to one, thus all of > these blocking actors may make my performance worse. > > Suggestions? > > Christopher Helck -- Martynas Mickevičius Typesafe <http://typesafe.com/> – Reactive<http://www.reactivemanifesto.org/> Apps on the JVM -- >>>>>>>>>> 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.
