scala - Whats the difference between RoundRobinPool and RoundRobinRouter -
these 2 usages have seen:
context.actorof(props(new indexworker(props)).withrouter(roundrobinrouter(4))) context.actorof(roundrobinpool(4).props(props[fileexplorer]))
whats difference between these 2 usages?
roundrobinrouter
deprecated
@deprecated("use roundrobinpool or roundrobingroup", "2.3")
there section router diffeerence in akka documentation:
this type of router actor comes in 2 distinct flavors:
pool - router creates routees child actors , removes them router if terminate.
group - routee actors created externally router , router sends messages specified path using actor selection, without watching termination.
Comments
Post a Comment