API App和Web App有什么区别? [英] What is the difference between an API App and a Web App?

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

问题描述

我现在已经阅读了一些有关将Web Apps和API Apps部署到Azure的教程.但是,我仍然不确定为什么要使用另一种方法.

I've been reading a few tutorials now on deploying Web Apps and API Apps to Azure. However, I am still a little unsure as to why you would use one over another.

我可以使用API​​控制器创建一个新的.NET解决方案并将其部署为Web应用程序,那么为什么要专门要求一个API App?这些是针对ASP.NET Web API专门优化的吗,因为Web Apps是用于传递HTML的?

I can create a new .NET solution with API controllers and deploy this as a Web App, so why would I specifically require an API App? Are these optimized specifically for ASP.NET Web API, where as Web Apps are for delivering HTML?

推荐答案

更新对Azure当前状态的答案,

Updating the answer to current state of Azure,

App Services现在将所有移动,Api和Web Apps风格替换为单个应用程序框架,并且具有所有功能,从而使跨应用程序类型的访问变得更加容易. 当前,所有Web,移动和Api应用程序统称为应用程序服务.我们仍然为客户提供能够在图库中创建移动应用程序和Web应用程序的方法,但基本上可以解决应用程序服务的问题.应用程序.

App Services now replaces all Mobile, Api and Web Apps flavors as a single app framework with all the functionality rolled over to make things more accessible across application types. Currently all of Web, Mobile and Api Apps are collectively called App Services. We still offer customer to be able to create a Mobile App and a Web App in the gallery but that is basically resolve into an App Service App.

https://azure.microsoft.com/zh-CN/documentation/articles/app-service-api-apps-why-best-platform/

用于Web App的移动功能以及Easy Tables和Easy API等功能. API应用程序的功能(例如API Cors和API定义)现在也可以在网络应用程序上使用.客户可以托管一个Web应用程序,以充当任何移动服务或具有通过该应用程序服务提供的所有功能的api.

Features for Mobile work for Web App as well such as Easy Tables and Easy API. And features for API apps like API Cors and API definitions now work on web apps as well. A customer can host a single web app to act as any mobile service or an api with all the features offered through the app services.

我们还提供了预览版中的一项新服务,特别是针对API应用程序,它为您的API提供了管理经验.基本上,您可以控制生成try API页面,收集执行分析,限制等功能.查看功能博客,以了解有关Azure API管理功能的更多信息.是的,您可以将API托管为App Service App,并通过API Management进行连接.

We also have a new service in preview particularly targeting API Apps by offering a management experience for your APIs, Basically you can control the generate try API pages, gather execution analytics, throttle and much more. Check out the feature blog to learn more about the Azure API Management Features. And yes you can host the APIs as a App Service App and hook things up with API Management.

https://azure.microsoft.com/en-us/documentation/articles/api-management-get-started/

这篇关于API App和Web App有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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