Does Aakka react the same as Scala? or handled by dispatchers?

In my opinion, this is not, there are two ways to create an actor that either extends the class of the Actor, or implements a technique or by creating an anonymous Actor using one of the actor’s methods. So far, so good.

Akka has the concept of dispatchers (http://akka.io/docs/akka/1.1.3/ scala / dispatchers.html), so this means that as soon as I create an actor and implement the reception, by default I get an event dispatcher, which looks like a reaction in Scala? Of course, if I need to associate my actor with an OS thread, then I would use a thread-based dispatcher, is this like getting into Scala?

+7
source share
1 answer

Akka has the concept of dispatchers (http://akka.io/docs/akka/1.1.3/ scala / dispatchers.html), so this means that as soon as I create an actor and implement the reception, by default I get an event dispatcher, which looks like a reaction in Scala?

Yes.

Of course, if I need to associate my actor with an OS thread, I would use a thread-based dispatcher, is this like getting into Scala?

Yes.

+6
source

All Articles