What are the benefits of using scala akka toolkit vs java akka toolkit?

In my team, we are trying to decide which way to take if Scala (somehow unknown) or Java (very well known).

We fully buy that our problem will be best solved by a system such as an actor, therefore, Akka, but we lack Scala knowledge.

What are the benefits of using the Scala library through the java library to complete this project?

+4
source share
1 answer

Akka performs asynchronous I / O using Java NIO, so a single thread can handle many concurrent requests. Traditional Java server servers use single-threaded I / O. So, if you need your code to scale up to, say, 10K open connections on a single virtual machine, without the need to generate 10K threads for this, you probably want something asynchronous.

There are Java frameworks like Netty or Atmosphere that also do asynchronous I / O, so you don't need to use Scala if your team is already well versed in Java.

+2
source

Source: https://habr.com/ru/post/1491037/


All Articles