Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

springboot project structure for microservices development

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If spring-boot to be used to develop a RESTful microservices project, which has 50+ services. I've gone through other posts, couldn't get final project structure on the same. Please suggest the project structure suitable for development and deployment. I am planning to use maven to build the project and development IDE is Spring Tool Suite.

1. core,api,controller etc... as separate maven multi module. Challenge in this approach is, I can not build separate jar file (for each microservice) to deploy in separate containers
2. Create different project for each microservice(with api,core, controller etc.. in the same project for that microservice). Challenge in this approach is, I need to have 50+ projects for 50+ microservices. This number may be even bigger with utility services.

Please suggest on the above and thanks in advance.
 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The core purpose of microservices is the ability to develop each service independently and making them work together. Most of the Microservices projects are developed independently and have a common protocol of communications using Object Mapping. We cannot write all our 50 services into one project whereas we have to develop each service as a separate project module.
We can build each service in sequence and consider writing the dependency in pom.xml to build jars required for each service.
 
I suggest huckleberry pie. But the only thing on the gluten free menu is this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic