12 Factors of a Scalable Microservice . I. Codebase One codebase tracked in revision control, many deploys A twelve-factor app is always tracked in a version control system, such as Git , Mercurial , or Subversion . A copy of the revision tracking database is known as a code repository , often shortened to code repo or just repo . A codebase is any single repo (in a centralized revision control system like Subversion), or any set of repos who share a root commit (in a decentralized revision control system like Git). There is always a one-to-one correlation between the codebase and the app: If there are multiple codebases, it’s not an app – it’s a distributed system. Each component in a distributed system is an app, and each can individually comply with twelve-factor. Multiple apps sharing the same code is a violation of twelve-factor. The solution here is to factor shared code into libraries which can be included through the dependency manager . Ther...
Popular posts from this blog
How to hide credentials in application.properties create env.properties add it to .gitignore env.properties after that inside it fill the credentials DB_DATABASE =NameofyourappSavedIntoYourDB DB_USER =yourUsername DB_PASSWORD =SuperStrongPassword API_KEY =superkey import it in application.properties this will enable to access it but still not committing the credentials spring .config .import =file:env .properties spring .datasource .url =jdbc: h2 :file:~/${DB_DATABASE} spring .datasource .username =${DB_USER} spring .datasource .password =${DB_PASSWORD}
Comments
Post a Comment