System Design

Explain Mono-repo vs. Multi-repo.What are the cons and pros of each approach?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

In a Mono-repo, all the code for an organization is stored in a single,centralized repository. PROS (Mono-repo):

  • Unified tooling
  • Code Sharing CONS (Mono-repo):
  • Increased complexity
  • Slower cloning

In a Multi-repo setup, each component is stored in it's own separate repository. Each repository has it's own version control history. PROS (Multi-repo):

  • Simpler to manage
  • Different teams and developers can work on different parts of the project independently, making parallel development easier. CONS (Multi-repo):
  • Code duplication
  • Integration challenges