Youngwook-Jeon / java-concurrency-akka

Studying java concurrency with Akka-Actors model
0 stars 0 forks source link

why do you use Actor Akka #1

Open fizz12344321 opened 2 years ago

fizz12344321 commented 2 years ago

Hi, i am reading your project, why do you choose Akka Actor for working as High concurrency, can u tell me the reason, the pros and cons of Actor Akka, why don't you choose another reactive stream like RxJava, Reactive...

Youngwook-Jeon commented 2 years ago

I think the main advantage of using Akka is about creating robust and concise code and avoiding any thread safety issues. RxJava/Reactor library also has a similar advantage to Akka(especially the "Actor model"). But Akka is a framework that covers a vast field(streams, persistence, clustering, etc) and can be easily deployed as a unified flow when deployed to multiple JVMs. I suggest you read the following article. https://medium.com/priceline-labs/choosing-a-reactive-framework-for-the-jvm-ec66f6cde552