一个应用程序有多少个应用服务? [英] How many App Services for one application?

查看:20
本文介绍了一个应用程序有多少个应用服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于 Azure 应用程序服务计划可以托管无限的应用程序(api 或 Web),对于相同的服务计划,如果 API 应用程序部署到多个 Web API 应用程序或一个单个应用?

As an a Azure app service plan can host unlimited apps (api or web), for the same service plan, would API apps function any differently (e.g. perform worse or better) if they are deployed to multiple Web API apps or a single app?

例如我有 500 个用于业务线应用程序的 API.从性能和管理的角度来看,部署到一个应用程序比部署到多个应用程序更好还是更差?从管理的角度来看,我可以看到拥有多个应用程序的工作量更大(例如,分别为每个应用程序配置 CORS).

E.g. I have 500 APIs for line of business application. From a performance and management perspective is deploying to one app better or worse than deploying to multiple apps? From a management perspective I can see it being more work having multiple apps (e.g. configuring CORS for each app separately).

推荐答案

在不了解您的应用程序的情况下从外部回答这个问题的唯一方法是它取决于".在浏览器中利用现代前端框架与 Web api 对话的规模适中的现代应用程序没有理由不能在具有适当规模的应用程序服务计划的单个应用程序服务上运行.

The only way to answer this from the outside without knowing anything about your app is "it depends". There’s no reason a decently sized modern app which leverages a modern front end framework in the browser talking to web apis can’t run on a single app service with an appropriately sized app service plan.

从那里开始,然后在正常负载下测量性能并观察系统运行状况.如果应用需要,请扩大应用服务计划.如果您想要更健壮的东西,并且您的应用程序是为支持它而编写的,请扩展您的应用程序服务计划.

Start there and then measure performance and watch your system health under normal load. If the app needs it, scale up the app service plan. If you want something more robust, and your app is written to support it, scale out your app service plan.

应用服务非常容易扩展和衡量,只需完成工作以使其起步.设置管道以部署您的代码和 Azure 资产.测量、调整、部署.

App service is so easy to scale and measure just do the work to get it off the ground. Set up pipelines to deploy your code and azure assets. Measure, tweak, deploy.

这篇关于一个应用程序有多少个应用服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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