本文介绍了在同一Service Fabric服务中使用多种参与者类型的优缺点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Azure Service Fabric可靠的Actor编程模型时,在同一服务中使用几种actor类型的优缺点是什么?
仅仅是部署问题,还是还有运行时注意事项?

When using the Azure Service Fabric Reliable Actor programming model, what are the pros and cons of using several actor types in the same service?Is it only a matter of deployment, or are there runtime considerations as well?

推荐答案

优点:


  • 增加密度。

  • 更少的项目管理总是有用的。

缺点:


  • 同一包中的参与者类型必须同时部署/升级,并且不再独立。

我的建议是,如果各个参与者在逻辑上紧密耦合,则使用相同的代码包。

My advice would be to use the same code packages if the various actors are quite tightly coupled logically.

这篇关于在同一Service Fabric服务中使用多种参与者类型的优缺点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-15 00:13