Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a mvc application structure like below
Web
Web.Business
Web.Database
Web.Domain
Web.Tests

Now I want to convert it to micro service

What I have tried:

As I am very new to micro service I don't know where to start
Posted
Updated 29-Mar-20 21:43pm

Quote:
I want to convert it to micro service
You need to focus on a domain-driven analysis of your application to be able to successfully migrate a monolith to a microservice. Normal distribution of the applications happens at different levels, as we distribute the front-end and back-end first.

Among these two ends, you then distribute the code based on:

  • Complexity of the code
  • Performance bottleneck/degradation
  • Separation of concerns
  • Maintain availability for solution

You keep separating different components of your application into modules and smaller processes that make it easier to manage the development and deployment.

Think of it this way, if a module can be developed alone, tested alone, deployed and function alone, it is a microservice. More advanced questions include, if it can be scaled alone, it can be made fault-tolerant alone, then it is a separate module.

Oh, and the tech stack should also be microservice level. You should focus on making your modules available via Docker or other container runtimes. That will give you control over how your applications scale.

Here are a few good resources, How to break a Monolith into Microservices[^]
Migrating to Microservices from a Monolithic App[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900