Software Development
Polyrepo
Definition
A polyrepo is a software development strategy where code for each project or microservice is stored in its own separate repository.
Why It Matters
The polyrepo approach is the most common and traditional way of organizing code. It gives teams more autonomy and ownership over their specific projects and repositories. Build and test processes are typically simpler and faster for each individual repository.
Contextual Example
An organization has 50 microservices. Each microservice lives in its own Git repository with its own independent build and deployment pipeline.
Common Misunderstandings
- The opposite of polyrepo is "monorepo".
- The challenge in a polyrepo setup is managing dependencies and code sharing between the different repositories.