问题是为什么 Playframework 团队决定从 Netty 迁移到 Akka?它在性能上更有效吗?
最佳答案
默认情况下,Play 切换到使用 Akka,因为:
Play 团队相信 Akka 的性能至少和 Netty 一样好。鼓励任何发现这不正确的人向他们提出问题。
以上所有内容均来自 email thread on the Play dev list .
注意:Play 继续支持 Netty,因此如果您更愿意使用 Netty,那么您可以 manually select it :
If for some reason you have both the Akka HTTP server and the Netty HTTP server on your classpath, you’ll need to manually select it. This can be done using the play.server.provider system property, for example, in dev mode:
run -Dplay.server.provider=play.core.server.NettyServerProvider
关于游戏框架 2.6.x : Why Akka HTTP is default from now?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46170111/