All Products
Search
Document Center

Tair (Redis® OSS-Compatible):Common scenarios

Last Updated:Oct 24, 2024

This topic describes how to use Tair(Redis OSS-compatible) for data storage in different scenarios, especially in high concurrency scenarios.

Gaming industry applications

Tair can serve as an important architecture component for data caching and data persistence in the gaming industry.

  • Scenario 1: Use Tair as a caching service to accelerate connections to applications

    Redis can serve as a caching service to accelerate connections to applications. Data is stored in backend databases (ApsaraDB RDS instances).

  • Scenario 2: Use Tair as a storage database

    Gaming applications can be deployed in a simple architecture, in which the main program runs on an Elastic Compute Service (ECS) instance and business data is persistently stored in a Tair instance. Tair can be used for persistent storage. It uses the master-replica architecture to implement redundancy.

The high availability of Redis is essential to your business. If the Redis service becomes unavailable, the backend databases may be overwhelmed by the requests that are sent from your applications. Tair uses the master-replica architecture to ensure high availability. In this architecture, the master node provides services for your business. If the master node fails, the system automatically switches workloads to the replica node. The complete failover process is transparent.

E-commerce industry applications

Tair is widely used in the e-commerce industry for business scenarios such as flash sales and recommendation.

  • Scenario 1: online shopping systems

    An online shopping system is likely to be overwhelmed by user traffic during large promotional activities such as flash sales. Most databases cannot handle the heavy load. To resolve this issue, you can use Tair for persistent storage.

  • Scenario 2: inventory management systems that support stocktaking

    You can store commodity data in ApsaraDB RDS and inventory data in Tair. Tair supports high concurrency and high traffic scenarios with its high performance to handle inventory queries with ease. This storage method ensures that not all queries are forwarded to ApsaraDB RDS, improving response speed and user experience.

Livestreaming applications

Livestreaming relies on Tair to store user data and chat records.

  • High availability

    Tair provides the master-replica architecture to greatly improve service availability.

  • High performance

    Tair provides cluster instances to eliminate the performance bottleneck that is caused by the single-thread mechanism of open source Redis. Cluster instances can handle traffic spikes during livestreaming and meet requirements for high performance.

  • High scalability

    Tair allows you to deal with traffic spikes during peak hours by scaling instances with a few clicks. The scaling process is completely transparent to users.