23.2. Building Failsafe Applications

After this brief theoretical overview about high availability, it is time to see what you can do to make your PHP-and PostgreSQL-based applications work more reliably.

When building reliable solutions, a few things cannot be influenced by the programmer. The first thing is the stability of the software packages you are building your applications on. If there are bugs in PHP's core distribution, you cannot do anything about it except use the latest packages and patches. In addition, we recommend using “old” functions that have been unchanged during the last few releases. These functions will most likely be more reliable than new functions.

However, you can't totally forecast or avoid most problems with software ...

Get PHP and PostgreSQL: Advanced Web Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.