akka - why actor module not support concurrent mailbox? -


i'm fresh akka, actor,i wonder why can't find concurrent mailbox use.
result, must define dispatch actor send work actor.many times, not care data's sequence , in situation make message sequence cost time.

i find create actor router props choice:

val actorref: actorref = context.actorof(props[myactor]         .withrouter(roundrobinpool(nrofinstances = 4)), name = "myactor")    //or  context.actorof(roundrobinpool(5).props(props[myactor]), "myactor") 

it create 4 actor instance return 1 actorref -- roundrobinpool handle , dispatch message these actors.


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -