How is clear but Why is not
dee-cf opened this issue · 4 comments
Could someone in plain english explain why would i, for example, choose to put my asp.net core application into Docker container vs putting it into Azure AppService?
I understand How's but don't have a clear pictures about Why's.
To be clear, i like the idea and have tried it already but for now it was just out of curiousity. Dont know what would be the main reasons for doing so?
thanks
I want to separate this question into two parts to avoid confusion:
- Why use Docker containers?
- Why use Docker containers in Azure App Service versus regular Azure App Service (that uses a vm)?
To answer, "Why use Docker containers?" I'd recommend this blog post that highlights the benefits of containers. As mentioned above, they are lighter-weight (increased density potential) and more flexible than VMs. At the most basic level this translates into saving a lot of time and money on configuring and running servers. The concepts that Docker introduces can also save a lot of dev and ops time because it provides better organization and flexibility to deployment. The post also goes over different .NET scenarios that are useful to use with containers. Docker has a lot of great material covering the huge benefits of containers.
To answer, "Why use Docker containers in Azure App Service versus regular Azure App Service (that uses a vm)?" the container option *will have a cheaper cost versus running the same app on a virtual machine.
*This is, however, obviously determined by the app and pricing model. Business decisions on pricing models aside, a dockerized app is generally cheaper to run anywhere. Though the pricing model is now different with the introduction of Azure Container Instances (ACI). I don't have a flat out comparison on pricing because it will depend on the needs of each individual app. Many customers and internal Microsoft teams have seen costs of building and running apps in production reduced by moving the app to containers.
@codefactorydevelopment Thank you for asking this question. It's great to have clear answers to these scenarios in a space that is developing so rapidly. I'll close this issue if no further explanation is needed.
thank you for your answer! it definitely gives some clear reasons for different options.
i have no further questions at the moment.
thank you!