# Three data centers In Two cities (A)


![left](./student-guide/diagram/29-Two-places-three-center-structure-01-01.png)

------------------------------------------------------------

High-availability disaster recovery solutions for three centers in two places, namely production data center, same city disaster recovery center, and offsite disaster recovery center. In this model, three data centers in two cities are interconnected, and in the event of a data center failure or disaster, the other data centers can operate normally and take over critical business or all of the business. Compared with the same city multi-center scheme, the three centers in the two places have cross-city high availability capacity and can cope with city-level natural disasters.

TiDB distributed database natively supports the construction of two places and three central architectures through the Raft algorithm, and ensures the consistency and high availability of database cluster data. Moreover, because the network latency of the same city data center is relatively small, traffic can be distributed to two data centers in the same city at the same time, and the design of common load traffic in the same city data center can be implement by controlling the distribution of region leader and PD leader.