question

DevBuster-3739 avatar image
0 Votes"
DevBuster-3739 asked EvgeniyG answered

Is docker necessary in .net core api microservices design?

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-webappsazure-api-management
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

EvgeniyG avatar image
0 Votes"
EvgeniyG answered

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, ...

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.