O'Reilly logo

Mastering Yii by Charles R. Portwood II

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Data replication and load balancing

As we start working with larger and larger systems, we often find the need to build an additional redundancy into our system in order to enable high availability and protection against unexpected downtime. When working with large systems, we will split our database into a read-and-write master and a read-only slave of a set of slaves. Typically, our applications are unaware of our database architecture, which can introduce problems when required to migrate from a new master. With Yii2, we can configure our database connection to not only be aware of our master-slave database configuration, but also intelligently handle slave unavailability.

In Yii2, we can configure a single master and multiple slaves using the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required