All Products
Search
Document Center

Tair (Redis® OSS-Compatible):Data synchronization

Last Updated:Dec 19, 2024

Tair (Redis OSS-compatible) 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)

  • Self-managed Redis

    2.8, 3.0, 3.2, 4.0, 5.0, 6.0, or 7.0 databases

  • Redis Open-Source Edition

    4.0, 5.0, 6.0, or 7.0 instances

  • Tair (Enterprise Edition) instances

  • Redis Open-Source Edition

    4.0, 5.0, 6.0, or 7.0 instances

  • Tair (Enterprise Edition) instances

  • One-way synchronization

  • Two-way synchronization

  • Cross-account synchronization

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.

Note

For information about how to create an account for a Tair (Redis OSS-compatible) instance and grant the required permissions to the account, see Create and manage database accounts.

Table 2. Required permissions

Tool

Synchronization scenario

Permission on the source database

Permission on the destination database

DTS (recommended)

  • Synchronize data between Tair (Redis OSS-compatible) instances that belong to the same Alibaba Cloud account

  • Synchronize data from a Tair (Redis OSS-compatible) instance to a self-managed Redis database

  • Synchronize data between Tair (Redis OSS-compatible) instances that belong to different Alibaba Cloud accounts

Read permissions

Read and write permissions

  • Synchronize data from a self-managed Redis database to a Tair (Redis OSS-compatible) instance

  • Synchronize data between self-managed Redis databases

Permissions to run the SYNC or PSYNC command

Read and write permissions

Data synchronization solutions

Important

The configuration methods for different scenarios are similar. The following table describes the solutions for common 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 a Tair (Redis OSS-compatible) instance

DTS

Synchronize data from a self-managed Redis database hosted on an ECS instance to an Tair (Redis OSS-Compatible) instance

Synchronization between Tair (Redis OSS-compatible) instances

DTS

Configure one-way data synchronization between instances

Configure two-way data synchronization between Tair instances

Configure one-way data synchronization between Tair (Redis OSS-compatible) instances across Alibaba Cloud accounts