From the course: Software Development Life Cycle (SDLC)

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Twelve-factor app, part 2

Twelve-factor app, part 2

- [Instructor] We are continuing with the 12 factor application principles, starting with principle number six. The sixth principle states that a 12 factor application runs as a set of independent stateless processes with the state of each request stored in persistent storage, such as a database, not in a local cache or file system associated with a process. If a process dies, the other processes can continue to handle requests with no data loss or inconsistency. Running an application as a set of independent processes facilitates horizontal scaling of our application. To handle increased workload, you can increase the number of processes that handle user requests and route the requests to the process via a load balancer. The port binding principle expects 12 factor applications to expose their functionality without depending on a web server, such as Apache or IIS. For example, a Python Flask application is exposed via port 5,000 by default with a web server library being part of the…

Contents