Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

differentiate between maven multi module and Spring micro services?

I am reading spring micro services for next project. Tut said that "The architecture style the main application divided in a set of sub applications called microservices. One large Application divided into multiple collaborating processes.". So already we have a framework maven multi module There I separated the project in my experience. even though it is. why do we need micro services to separate a project?. please differentiate it. thanks in advance..

like image 999
Navaneethan Arun Avatar asked Mar 18 '26 00:03

Navaneethan Arun


1 Answers

Every service in the microservice architecture should be isolated which means that the team in charge of that service is able to put continuous deployment in practice without need to deploy other services. In practice, IMHO I think that we can use two approaches using our favourite build tool such as maven or gradle:

  • Monoproject: domain, repositories, services and controllers are all in the same project.

  • Multiproject: domain, repositories, services and controllers can be grouped in different modules. i.e domain and repositories are in repository module and services in another module with the same name and controllers in front module.

But, doesn't matter which approach you use the project (mono or multi) should represent one service.

like image 127
Eddú Meléndez Avatar answered Mar 19 '26 14:03

Eddú Meléndez



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!