Reputation: 5000
I am rather confused about what approach to take while writing multithreading code in Scala. I see three options:-
Upvotes: 1
Views: 434
Reputation: 1012
Akka is more then just multithreading. It's a framework for distributed applications / jobs. If you have to implement multiple consumer / producer threads, I'd recemmend you akka.
Maybe have a look at distributed pub-sub section of the documentation. Seems to address your problem pretty much: http://doc.akka.io/docs/akka/current/scala/distributed-pub-sub.html
If akka's too complex to get started, use Scala Features. Theres a good series of articles about Scala features at https://github.com/viktorklang/blog
Upvotes: 0
Reputation: 31546
My advise would be to start with Futures and then move to Actors if there is a need.
Upvotes: 1