Azure API应用程序和Azure Service Fabric之间有什么区别? [英] What is the difference between Azure API Apps and Azure Service Fabric?

查看:82
本文介绍了Azure API应用程序和Azure Service Fabric之间有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Azure表存储来存储我的应用程序的数据.我需要构建一个API来从Azure表存储中检索数据.表中有大约一百万条记录.在初始阶段,我的API每天可获得约​​100-1000次匹配.在API应用程序或Service Fabric上开发该API的最佳选择是什么?

I am using Azure Table storage to store the data of my application. I need to build an API to retrieve the data from Azure table storage. There are like a million records in the table. In the initial stage, my API would be getting approximately 100-1000 hits per day. What would be the best choice to develop that API on, API apps or Service Fabric?

推荐答案

这取决于很多方面:

  • 您要如何维护它?
  • 您对性能有什么要求?每天所有100-1000次匹配是同时发生还是全天分布?
  • 您要如何处理缩放?

如@feranto所述,主要区别在于架构模式.这个决定不仅对开发有很大的影响,而且您将不得不考虑如何维护您的应用程序.

As described by @feranto the main difference is the architectural pattern. The decision will have a lot of implications for you, not only when it comes to development, but you will have to consider how to maintain your application.

仅基于您的简短描述,这听起来像是一个相对简单的解决方案,不是非常复杂,也不是非常高的性能/规模要求.鉴于此,您可能更容易选择更基本的API应用程序. Service Fabric是一个出色的框架和体系结构,它使我们能够构建非常灵活,高度可扩展的解决方案,但应注意的是,在处理,监视和维护基础服务集群及其基础架构时,这也带来了更多的复杂性.应用程序.

Only based on your short description, it sounds like a relatively straightforward solution and not very complex nor very high performance/scale requirements. Given that, it might be easier for you to go for a more basic API App. Service Fabric is an excellent framework and architecture that allows us to build very flexible, highly scalable solutions, but it should be noted that that also comes with a lot more complexity when it comes to handling, monitoring and maintaining both the underlying service cluster and it's applications.

设置API应用程序,连接到Azure存储表并使用例如

Setting up an API App, connecting to an Azure Storage table and control that with for instance Application Insights is relatively straight forward and you can find a lot of documentation and samples for that. As a contrast, Service Fabric is fairly nascent in documentation and samples, and you would have to read up on a lot to get a basic stable solution running if you are new to it.

这篇关于Azure API应用程序和Azure Service Fabric之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆