When Data Transmission Service (DTS) synchronizes or migrates data to an ApsaraMQ for RocketMQ instance, you can configure the rules of the ordered messages to improve the performance of a data synchronization or migration instance. This topic describes the rule policies of the ordered messages that DTS supports.
Usage notes
If you want to upgrade or downgrade the class of the destination ApsaraMQ for RocketMQ instance in DTS, the message is delivered in a new rule configuration different from before.
Policies
Name | Description | Advantages and disadvantages |
Deliver data in an ordered way and a unified view. | DTS delivers all data and DDL statements to Partition 0 of the destination topic. |
|
Deliver data based on hash values of database and table names. | DTS uses the database and table names as the partition key to calculate the hash value. Then, DTS delivers the data and DDL statements of each table to the corresponding partition of the destination topic. Note
|
|
Deliver data based on hash values of a specified column. | DTS uses a table column as the partition key to calculate the hash value. The table column is the primary key by default. If a table does not have a primary key, the unique key is used as the partition key. DTS delivers each row to the corresponding partition of the destination topic. Note
|
|
Configuration method
You can configure the Rules of the ordered messages delivered to RocketMQ. in the Configure Objects phase of a data synchronization or migration instance.