I'm developing a Web API and will host it at Windows Azure. What should I take into consideration to decide where to deploy it? As far as I know it can be deployed as a Website or as a Cloud Service. Would love to know the pros and cons you guys see.
Thanks!
To deploy to any Azure App service (Web app for Windows, Linux, container, Function app or web jobs), use the Azure App Service Deploy task. This task is automatically added to the release pipeline when you select one of the prebuilt deployment templates for Azure App Service deployment.
Web apps in Azure allow you to publish and manage your website easily without having to work with the underlying servers, storage, or network assets.
Azure App Service enables you to build and host web applications in the programming language of your choice without managing infrastructure. Learn how to create a website through the hosted web app platform in Azure App Service.
Both Cloud Services and Windows Azure Web Sites are fine hosts for an ASP.NET Web API.
I agree with @SLaks - depends on how much control you want.
Use Cloud Service for maximum control (including control over performance characteristics and (for APIs that need this) ability to scale out). Web Sites for speed of deployment (seconds rather than minutes) and cost (might be free, depending on your scaling needs).
More on Scaling Web Sites: http://www.windowsazure.com/en-us/manage/services/web-sites/how-to-scale-websites/
In summary, from least-to-most control, you really have: Web Sites Shared Instances (high density mode, little control, limited scale, free) => Reserved Mode (little control, better scale, more predictable (b/c no tenants you don't know about), costs money, low knowledge) => Cloud Service (max control over IIS, costs money, more knowledge needed around Cloud Services).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With