Monorepo (अनेक प्रकल्प/सेवांसाठी एक संचयालय) आणि polyrepo (प्रत्येक प्रकल्पाचे वेगळे संचयालय) हे कोडचे आयोजन करण्याच्या दोन रणनीती आहेत। प्रत्येकाचे सहयोग, साधने आणि स्केलिंग यांच्यावर महत्त्वपूर्ण ट्रेडऑफ आहेत — त्यांना समजून घेणे महत्त्वपूर्ण आर्किटेक्चरल निर्णयांची माहिती देते.
Monorepo — सर्वकाहीसाठी एक संचयालय
Many projects/services/libraries in a SINGLE repository:
✓ SHARED code/libraries easy to use and refactor (one place, atomic changes)
✓ ATOMIC commits across projects (change an API and all its consumers together)
✓ Unified tooling, versioning, CI; consistent standards; easy cross-project visibility
✓ Simplified dependency management (one version of shared code)
✗ Repo can get HUGE (needs scaling tooling — sparse checkout, build caching)
✗ Needs sophisticated build/CI tooling (Nx, Turborepo, Bazel) to be efficient
✗ Broad access; CI must be smart (only build what changed)
→ Used by Google, Meta, etc. (with heavy tooling investment).
