The data synchronization feature supports multiple types of synchronization topologies. You can plan your data synchronization instances based on your business requirements. This topic describes the synchronization topologies that are supported by Data Transmission Service (DTS) and how to use these topologies.
One-way synchronization
To ensure data consistency for one-way synchronization, we recommend that you perform only read operations on the objects in the destination instance. Do not perform write operations on the objects.
Topology type | Topology | Description |
---|---|---|
One-way one-to-one synchronization | ![]() | None |
One-way one-to-many synchronization | ![]() | You must purchase multiple data synchronization instances to implement one-way one-to-many synchronization. For example, if you want to synchronize data from Instance A to Instance B, Instance C, and Instance D, you must purchase three data synchronization instances. |
One-way cascade synchronization | ![]() | You must purchase multiple data synchronization instances to implement one-way cascade synchronization. For example, if you want to synchronize data from Instance A to Instance B and then from Instance B to Instance C, you must purchase two data synchronization instances. |
One-way many-to-one synchronization | ![]() | You must purchase multiple data synchronization instances to implement one-way many-to-one synchronization. For example, if you want to synchronize data from Instance B, Instance C, and Instance D to Instance A, you must purchase three data synchronization instances. Note To ensure data consistency, you must select different objects to synchronize for these data synchronization instances. |
Two-way synchronization
Source instance | Destination instance |
---|---|
MySQL |
|
PolarDB for MySQL |
|
PostgreSQL |
|
PolarDB for PostgreSQL |
Note You need to purchase a data synchronization instance before you configure two-way synchronization between a PolarDB for PostgreSQL cluster and a PostgreSQL database or a PolarDB for PostgreSQL cluster. For more information about how to purchase a DTS instance, see Purchase a DTS instance. |
Tair or Redis | Tair or Redis |
MongoDB | MongoDB |
- For more information about how to configure two-way synchronization, see Configure two-way synchronization between MySQL databases.
- You can update the synchronization topology of a data synchronization task from one-way to two-way. For more information, see Upgrade synchronization topology from one-way to two-way.
- If you have questions about synchronization topologies, contact technical support in the DingTalk group (ID: 3685018060). To download DingTalk, click download DingTalk.
Topology type | Topology | Description |
---|---|---|
Two-way one-to-one synchronization | ![]() | To ensure data consistency, make sure that data records with the same primary key, business primary key, or unique key are updated on only one of the source and destination instances. Note If data records are updated on both the source and destination instances, DTS responds to conflicts based on the conflict resolution policy that you specify for the data synchronization task. |