Base solution for your next web application
Open Closed

Moving from IIS/Azure Deployment to Docker Deployment #12170


User avatar
0
ptaylor created

Dear Team,

Type - ASP.NET Core & Angular(Separate) Version - 13.3.0

We have been deploying the product in IIS and Azure App Services from a long time wherein Angular and API are deployed in two websites/azure app services and database is in a separate SQL server or Azure SQL Database. The team is planning to move to containerization deployment. We followed your document https://docs.aspnetzero.com/aspnet-core-angular/latest/Deployment-Angular-Docker to try out the deployment and were able to deploy the app in three containers, one for angular/web server, one for API/backend and one for SQL Server Database. There are few queries related to this before moving forward with staging and production.

  1. Can we have a single container with all three components(web server, API and Database)? If yes, what are pros and cons compared to three separate containers?
  2. We expected a better performance in containerization deployment but after testing we found its not better than IIS deployment. Both machines are of same configuration and in the same location with only difference being Operating System. Is this something due to the product architecture or in the way how containerization is deployed?
  3. What are other problems we would face in production if we have containerization deployment using Kubernetes? As per documentation moving to distributed cache Redis and using Hangfire for background jobs is mentioned. Are there any other changes we need to do in the application code?

Regards


1 Answer(s)