Is docker necessary in .net core api microservices design?

DevBuster007 171 Reputation points
2020-09-27T05:23:01.787+00:00

I searched for this query but didn't got ant substantial answers.
I am designing a microservices application using .net core 3.1 in C#.
Few details:

  • Front end- Angular. Deployed in Azure Web app.
  • Individual Services deployed in Azure App
  • Azure API management to manage individual services group together based on business logic
  • Using Azure SQL server for back end, some of the services share db.
    So as you see here, i don't want my sql db in docker container. I am not able to wrap my head around as in why would i need docker here.
    And can i still fulfill microservices design if i don't use docker.

Appreciate all the help!! Thank you.

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,656 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,519 questions
0 comments No comments
{count} votes

Accepted answer
  1. Evgeny Grishchenko 486 Reputation points
    2020-09-27T09:09:37.577+00:00

    Hi @SumanGeorge-3739 ,

    Microservices design should not depend on docker, because docker is just one of possible implementation ways.

    Something like Dependency Inversion Principle: "High-level modules should not depend on low-level modules. Both should depend on abstractions."

    You could deploy your micro services as WebApps (runtime or docker image), Docker images on Kubernetes or Azure Container Service.

    Your choice would depend on many things: load, availability requirements, ...

    0 comments No comments

0 additional answers

Sort by: Most helpful