ApsaraDB for Redis provides multiple data synchronization solutions by using Data Transmission Service (DTS) to cater to diverse scenarios such as data synchronization to the cloud, active geo-redundancy, disaster recovery, and data analytics.
DTS
Alibaba Cloud DTS is a real-time data streaming service that integrates data migration, data subscription, and data synchronization into a single comprehensive service to ensure stable and secure data transmission. DTS supports full data migration and incremental data migration with minimal downtime. This ensures service availability.
Table 1. Availability of DTS to synchronize data from or to a database
Tool | Supported source database | Supported destination database | Supported architecture | Supported synchronization topology |
DTS (recommended) |
|
|
|
Required permissions
The permissions that are required by DTS vary based on synchronization scenarios. Before you configure data synchronization, you must obtain the required permissions on the source and destination databases based on the synchronization scenarios. The following table describes the required permissions.
For information about how to create an account for an ApsaraDB for Redis instance and grant the required permissions to the account, see Create and manage database accounts.
Table 2. Required permissions
Table 3. Required permissions
Tool | Synchronization scenario | Permission on the source database | Permission on the destination database |
DTS (recommended) |
| Read permissions | Read and write permissions |
| Replication permissions Note You cannot create an account that has replication permissions for a source instance that uses the cluster or read/write splitting architecture. If the destination instance is an ApsaraDB for Redis instance, you can submit a ticket to apply for the permissions. | Read and write permissions | |
| Permissions to run the SYNC or PSYNC command | Read and write permissions |
Data synchronization solutions
The configuration methods for different scenarios are similar. The following table describes the solutions for general data synchronization scenarios. If your synchronization scenario is not included in the following table, you can view the topics about similar scenarios and configure the required permissions.
Scenario | Tool | Solution |
Synchronize data from a self-managed database to an ApsaraDB for Redis instance | DTS | Synchronize data from a self-managed Redis cluster to an ApsaraDB for Redis cluster instance |
Synchronize data from a Codis cluster hosted on an ECS instance to an ApsaraDB for Redis instance | ||
Synchronize data between ApsaraDB for Redis instances | DTS | Configure one-way data synchronization between ApsaraDB for Redis instances |
Configure two-way data synchronization between Tair instances | ||
Synchronize data between ApsaraDB for Redis cluster instances across Alibaba Cloud accounts | ||
Synchronize data between self-managed Redis databases | DTS |