© Jonathan Bartlett 2019
J. BartlettBuilding Scalable PHP Web Applications Using the Cloudhttps://doi.org/10.1007/978-1-4842-5212-3_7

7. Database Replication

Jonathan Bartlett1 
(1)
Tulsa, OK, USA
 

Some things simply cannot be cached. Ad hoc reports, up-to-the-second changes, and sites where access patterns are spread across a large number of unrelated pages are all difficult to optimize using caching. For workloads like this, you can deploy a bigger database server, but eventually even those run into limits.

Therefore, many application architectures include database replication, where there is more than one database server serving out requests.

7.1 Types of Database Replication

There are many types of database replication depending on your needs. The ...

Get Building Scalable PHP Web Applications Using the Cloud: A Simple Guide to Programming and Administering Cloud-Based Applications 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.