Codebase

One codebase tracked in revision control, many deploys.

  • Always tracked in version control.
  • 1:1 correlation between the codebase and the app.
    • Mutiple codebases represent a distributed system. Each component of a distributed system is an app which can individually comply with the principles.
    • Multiple apps sharing code is a violation: shared code should be refactored into a libraries which can use a dependency manager.
  • One codebase per app, but many deploys (running instances).
    • Every developer has a copy of the app running locally; these count.
  • Codebase is the same across all deploys.
    • Different versions might be active in each deploy.

References


Backlinks