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

标签 c# .net azure distributed-system azure-service-fabric

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

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

使用 Azure Service Fabric 与使用 Azure Cloud 的自定义架构(服务、角色、队列)有何优缺点?

最佳答案

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

不,您根本不必在 Service Fabric 中使用 Actor。您可以使用服务 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 文档才能获取详细信息,但我可以给出我的意见。

优点:

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

缺点:

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

关于c# - 使用 Azure Service Fabric 与自定义 Azure 云的优缺点?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36358516/

相关文章:

c# - 通过遍历列表访问每个对象的公共(public)方法

c# - 我可以以编程方式设置 app.config 'useLegacyV2RuntimeActivationPolicy' 属性吗?

azure - 从 Azure 中的表存储触发函数

c# - 如何从 aspx.cs 页面切换确认消息框

c# - 为什么 PropertyInfo.SetValue 不是通用方法?

java - Azure 数据工厂 - 无法验证 invalid_grant

c# - 使用刷新 token 和 native 应用程序客户端 ID 获取访问 token

c# - 在 C# 中,如何在 ViewModel 的 View 上设置 DataContext?

c# - 警告未等待此调用,继续执行当前方法

c# - 如何找到 Id 属性或与导航属性相关的属性?