java - akka 中每个主机的最大 Actor 数

标签 java akka akka-cluster

在 akka 中,一个盒子最多可以容纳多少个 actor?

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?

最佳答案

这只是拥有足够内存的问题:一个 actor 的开销大约为 400 字节(加上您在其中保存的任何状态)。这意味着在典型的系统上,您可以拥有数百万个参与者。性能不取决于您创建的 Actor 数量,而取决于您在他们之间发送的消息数量。如果这个数字高达每秒几百万,您也不用担心,除此之外,您将必须针对您选择的硬件对您的程序进行基准测试,看看它是否可行。

关于java - akka 中每个主机的最大 Actor 数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18989669/

相关文章:

java - 了解 Akka 集群分片

具有持久邮箱的 Akka 无状态参与者

java - 在没有 Web 组件的情况下将 Spring 应用程序部署到 Weblogic - war、rar 还是 ejb?

Java比较列表的行与列表

Scala Akka 和 Protocol Buffer

java - Akka Actors unstashAll() 与 Java 中的谓词

java - DAO 级别 boolean 方法的最佳实践

C#\Java 和 Java\C# 对客户端\服务器 - 客户端(套接字)关闭时正常断开连接

scala - Kilim 与 Scala : is it possible and as mature as more "standard" Scala concurrency approaches?

java - 在一个集群中只运行一次 akka scheduler