akka中每个主机的最大演员数

use*_*796 5 java akka akka-cluster

在akka的一个盒子上我们可以拥有多少个最大的演员?

public void MyActor extends AkkaActor{

  receive(Objet obj){
    // so something
  } 

}

1)Is there some limit on max number of actors instances?I am planning to created around 10K actors on one box. I will have 50 such boxes so that i can scale horizontally
2)IS there some performance problems with this?
Run Code Online (Sandbox Code Playgroud)

Rol*_*uhn 9

这只是一个有足够内存的问题:一个actor的开销大约是400字节(加上你保留在其中的任何状态).这意味着在典型系统中,您可以拥有数百万个演员.性能不依赖于您创建的actor的数量,这取决于您在它们之间发送的消息数量.你不应该担心这个数字是否高达每秒几百万,除此之外你必须根据你选择的硬件对你的程序进行基准测试,看看它是否有用.