使用 Azure Service Fabric 与自定义 Azure 云的优缺点?

Pros and cons on utilizing Azure Service Fabric vs Custom Azure Cloud?

如果我选择使用 Azure Service Fabric 构建我的分布式应用程序系统是否意味着我需要以 Actors 方式创建所有部分?

或者如果我已经在 Azure 云服务和角色、工作人员中分配了系统,是否可以使用 Azure Service Fabric 创建新的部分并将它们连接在一起?

使用 Azure Service Fabric 与自定义架构与 Azure 云(服务、角色、队列)的优缺点是什么?

does it mean that I will need to create all parts in Actors way?

不,您根本不必在 Service Fabric 中使用 Actors。您可以使用服务 API 甚至 运行 您的自定义服务。

is it possible to create new parts with Azure Service Fabric and connect them together?

这完全有可能。您可以使用多种方法来做到这一点,类似于您用于其他应用程序的方法。最常见的两种方式是

  • 在 Service Fabric 中托管 Web API 项目
  • 使用消息队列或事件中心

What is pros and cons of utilizing Azure Service Fabric vs custom architecture with Azure Cloud

这是一个非常广泛的问题,因此您必须阅读 Service Fabric 文档以了解详细信息,但我可以给出我的意见。

优点:

  • 在集群中部署大量服务,有效利用资源
  • 开箱即用的可靠性、资源分配、分区、错误恢复和通信编排
  • 本地内存可靠状态
  • 无需停机即可升级

缺点:

  • 平台锁定(至少在某种程度上)
  • 更高的复杂性和进入门槛