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