Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个问题,它是否会提高生产力,做ActorSystem system = ActorSystem.create("System");很多次,还是我必须这样做一次并使用一个参考?
ActorSystem system = ActorSystem.create("System");
您应该只创建一个ActorSystem,来自Akka 文档:
ActorSystem
ActorSystem 是一种重量级结构,将分配 1…N 个线程,因此为每个逻辑应用程序创建一个