Web Api与Azure HTTP触发功能 [英] Web Api vs Azure http triggered function

查看:70
本文介绍了Web Api与Azure HTTP触发功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以帮助我了解何时使用具有HTTP触发器的Web Api和Azure函数吗?另外还有一些有关的准则

Could anyone help me to understand when to use Web Api and Azure function having http trigger? Also some guidelines about  which one is better in some particular condition.

推荐答案

功能(

Functions (Consumption Plan) are the perfect choice when dealing with functionality that is not used in real time (continuous traffic) because when idle, there is almost no cost to you. It is billed on execution.

但是也可以使用常规的 应用服务计划,也使其成为交通繁忙的理想选择,因此也是整体上更好的选择.
在App Service计划中运行的功能实际上与任何其他传统API App并没有什么不同.

But Functions can also be deployed using a normal App Service Plan as well making it a good choice for heavy traffic as well and thereby the better choice overall too.
Functions running in a App Service plan is really not that different from any other traditional API App.

功能也使开发变得更加容易,因为您实际上不必担心传统API应用程序所需的大量样板代码.

Functions also makes development much easier since you wouldn't actually have to worry about a lot of boilerplate code required for traditional API Apps.

请注意,当使用功能"(以及App Service)时,您将必须解决以下限制: Azure应用服务沙箱.

Do note that when using Functions (and App Service too), you will have to work around some limitations of the Azure App Service Sandbox.


这篇关于Web Api与Azure HTTP触发功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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