All Products
Search
Document Center

Tair (Redis® OSS-Compatible):Overview

Last Updated:Sep 25, 2024

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)

  • Self-managed Redis

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

  • ApsaraDB for Redis Community Edition instances that run

    Redis 4.0, 5.0, 6.0, or 7.0

  • ApsaraDB for Redis Enhanced Edition (Tair)

  • ApsaraDB for Redis Community Edition instances that run

    Redis 4.0, 5.0, 6.0, or 7.0

  • ApsaraDB for Redis Enhanced Edition (Tair)

  • One-way synchronization

  • Cross-account synchronization

  • Two-way 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 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)

  • Synchronize data between ApsaraDB for Redis instances that belong to the same Alibaba Cloud account

  • Synchronize data from an ApsaraDB for Redis instance to a self-managed Redis database

Read permissions

Read and write permissions

  • Synchronize data between ApsaraDB for Redis instances that belong to different Alibaba Cloud accounts

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

  • Synchronize data from a self-managed Redis database to an ApsaraDB for Redis 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 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 self-managed Redis database hosted on an ECS instance to an ApsaraDB for Redis instance

Synchronize data from a Codis cluster hosted on an ECS instance to an ApsaraDB for Redis instance

Synchronize data from a Twemproxy Redis 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

Synchronize data from a self-managed Redis database connected over Express Connect, VPN Gateway, or Smart Access Gateway to a self-managed Redis database hosted on an ECS instance