QuestionQ1

VerifiedHeroku Platform Architecture and Application Design

At Universal Containers (UC), Yuichiro developed a PHP application that uses a MySQL database in production. Yuichiro is onboarding Mary, a new UC developer, who is configuring her development environment. Yuichiro asks Mary to:

  1. Manually install the required PHP libraries so the application can run.
  2. Use MongoDB rather than MySQL in the development environment.

According to the Twelve-Factor methodology, which changes should an Architect recommend?

Explanation

Twelve-Factor applications explicitly declare and isolate their code dependencies, so required PHP libraries should be recorded in the application source rather than manually installed. The methodology also requires dev/prod parity: development and production should use the same type and version of backing services. Therefore, the development environment should use MySQL, matching production.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!