×
Community Blog Tair (Redis® OSS-Compatible): Migrating and Backing up

Tair (Redis® OSS-Compatible): Migrating and Backing up

Here shows how to migrate and back up a local database with Alibaba Cloud Tair (Redis® OSS-Compatible) and outlines its hybrid storage instances.

Migrating and Backing up with Tair (Redis®* OSS-Compatible)

Tair (Redis® OSS-Compatible) from Alibaba Cloud is a key-value pair storage database that provides in-memory caching and high-speed access to cloud-hosted applications. The ApsaraDB database stack is part of Alibaba Cloud's larger database services offering. RDS, Memcache, MongoDB, and Redis® are all supported by the ApsaraDB suite.ApsaraDB from Alibaba Cloud relieves you of common system administration responsibilities such as administering big web application in-memory caches and corporate databases. Tair (Redis® OSS-Compatible) comes with an automatic backup system out of the box.

In this tutorial, you'll get started using Alibaba Cloud Tair (Redis® OSS-Compatible), and explore how you can migrate and back up a local database with Alibaba Cloud Tair (Redis® OSS-Compatible).

We first had set up our Redis® database and made sure it was working, and we set an example key-value pair. Then, we made sure we saved our local Redis® database with the appendonly option. Next, after that, we created an Alibaba Cloud ECS Instance on which to host our Tair (Redis® OSS-Compatible) instance. We configured the instance to have Ubuntu 16.04 as our operating system and setup Redis® on the instance. Next, we created an Alibaba Cloud Tair (Redis® OSS-Compatible) instance, which was attached to the ECS instance we had just created. We migrated our local database to the Alibaba Cloud instance and checked whether it had migrated successfully. Finally, we performed some network administration in order to be able to access our Alibaba Cloud Tair (Redis® OSS-Compatible) instance from outside the cloud console. We chose the Java Jedis client and wrote a test class to check that we could connect to the cloud database.

Introducing Tair (Redis® OSS-Compatible) Hybrid Storage Instances

Alibaba Cloud Tair (Redis® OSS-Compatible) hybrid storage instances is a proprietary database system solution that is completely compatible with the Redis® protocol and features. These hybrid storage instances enable full data storage on a disk rather than in memory, as well as caching hot data in memory, achieving a balance between access performance and storage costs.

Architecture and Features

The below diagram provides a general picture of the underlying architecture and features of this service.

Architecture and Features

Command Compatibility

Hybrid storage instances are compatible with the majority of Redis commands, however the use of the following Redis commands are either not supported or restricted. If you require use of these commands, submit a service ticket.

Command Compatibility

Scenarios

Live Streaming

Live streaming generates a large amount of hot data, most of which is from popular live streaming rooms. You can use Tair (Redis® OSS-Compatible) hybrid storage instances to store data from popular live streaming rooms in the memory and store data from unpopular rooms on disks. As such, you can make full use of the limited memory space.

E-commerce

E-commerce applications have a large amount of commodity data. New products are frequently accessed, whereas older products are accessed less frequently. Using Tair (Redis® OSS-Compatible) hybrid storage instances, you can easily bypass the memory capacity limit by storing a large amount of commodity data on disks. During normal service requests, active commodity data is gradually cached in the memory to meet business needs at the lowest costs.

Online Education

Online education generates a large amount of data, such as courses, question banks, and data exchanged between teachers and students. Only the latest courses and question banks are frequently accessed. You can use Tair (Redis® OSS-Compatible) hybrid storage instances to store massive course data on disks and transfer frequently accessed courses and question banks to the memory for constant caching. This ensures the access performance of frequently accessed data and strikes a balance between performance and storage costs.

Other Scenarios

In scenarios where hot and cold data is accessed separately, you can use Tair (Redis® OSS-Compatible) hybrid storage instances to reduce storage costs while maintaining the average performance level needed for systems.

Related Products

Tair (Redis® OSS-Compatible)

Tair (Redis® OSS-Compatible) is an automated and scalable tool for developers to manage data storage shared across multiple processes, applications or servers.

As a Redis protocol compatible tool, Tair (Redis® OSS-Compatible) offers exceptional read-write capabilities and ensures data persistence by using memory and hard disk storage. Tair (Redis® OSS-Compatible) provides data read-write capabilities at high speed by retrieving data from in-memory caches and ensures data persistence by using both memory and hard disk storage mode.

Tair (Redis® OSS-Compatible) supports advanced data structures such as leaderboard, counting, session, and tracking, which are not readily achievable through ordinary databases.

Related Documentation

Disaster recovery

Data serves as a key component for most businesses. Databases are used to store data and play a key role in data management. Tair (Redis® OSS-Compatible) is a high-availability (HA) key-value database service. This service helps you store large amounts of important data in various scenarios. This topic describes disaster recovery solutions provided by Tair (Redis® OSS-Compatible).

Instance Specifications

Tair (Redis® OSS-Compatible) provides multiple editions, series types, and architectures.

This topic describes the edition, series type, and architecture specifications of Tair (Redis® OSS-Compatible) instances. You can refer to the following table for more information about the required instance specifications.


*Redis is a registered trademark of Redis Ltd. Any rights therein are reserved to Redis Ltd. Any use by Alibaba Cloud is for referential purposes only and does not indicate any sponsorship, endorsement or affiliation between Redis and Alibaba Cloud.

0 0 0
Share on

Alibaba Clouder

2,599 posts | 762 followers

You may also like

Comments

Alibaba Clouder

2,599 posts | 762 followers

Related Products