# Twelve-Factor WordPress App #9: Disposability

Factor #9: [Disposability](https://12factor.net/disposability)

## Maximize robustness with fast startup and graceful shutdown

> The twelve-factor app’s processes are disposable, meaning they can be started or stopped at a moment’s notice. This facilitates fast elastic scaling, rapid deployment of code or config changes, and robustness of production deploys.

Most of this factor is already taken care of by adhering to the other factors, and by default, using PHP-FPM.

## In Practice

> Processes shut down gracefully when they receive a SIGTERM signal from the process manager. For a web process, graceful shutdown is achieved by ceasing to listen on the service port (thereby refusing any new requests), allowing any current requests to finish, and then exiting.

Thanks to PHP-FPM, this graceful shutdown is handled automatically by the `SIGTERM` or `QUIT` signal. Graceful restart is also supported by `reload` or by sending the `USR2` signal.

#### [Turning a WordPress site into a Twelve-Factor App](/twelve-factor-wordpress/)

1. [Codebase](/twelve-factor-01-codebase/)
2. [Dependencies](/twelve-factor-02-dependencies/)
3. [Config](/twelve-factor-03-config/)
4. [Backing Services](/twelve-factor-04-backing-services/)
5. [Build, release, run](/twelve-factor-05-build-release-run/)
6. [Processes](/twelve-factor-06-processes/)
7. [Port binding](/twelve-factor-07-port-binding/)
8. [Concurrency](/twelve-factor-08-concurrency/)
9. **[Disposability](/twelve-factor-09-disposability/)**
10. [Dev/prod parity](/twelve-factor-10-dev-prod-parity/)
11. [Logs](/twelve-factor-11-logs/)
12. [Admin processes](/twelve-factor-12-admin-processes/)

Want to turn your WordPress site into a Twelve-factor App? [**Bedrock**](/bedrock/) is a modern WordPress stack to help you get started with the best tools and practices.