microservices-patterns / ftgo-application

Example code for the book Microservice patterns
Other
3.46k stars 1.33k forks source link

Microservice Pipeline #12

Open renatojava opened 6 years ago

renatojava commented 6 years ago

Hello,

I am reading your book and I have a doubt about the correct way of organizing the project. In this example, you create one big repo with all sources into, but when you have microservices and pipelines the correct way is not would be one repo per project?

  1. Because your project can grow very and with one repo we have checkout all sources.
  2. For create pipelines, we want build single project, and if we have all sources together we need to check out all sources navigate to the folder for run mvn clean install for example. Could you explain how organize the project in the correct way?
cer commented 6 years ago

For simplicity, the book example application uses a mono repo.

While some developers use a mono repo, the 'standard' approach is to have a repo and a (e.g. Jenkins based) deployment pipeline per service along with other repositories for the shared libraries.

I plan to publish a a multi-repo version of the FTGO application in the very near future.