This topic describes how to use ApsaraDB for Redis for data storage in different scenarios, especially in high concurrency scenarios.

Gaming industry applications

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

  • Scenario 1: Use ApsaraDB for Redis as a caching service to accelerate connections to applications

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

  • Scenario 2: Use ApsaraDB for Redis 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 an ApsaraDB for Redis instance. ApsaraDB for Redis can be used for persistent storage. It uses a master-replica architecture to implement redundancy.

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

E-commerce industry applications

ApsaraDB for Redis is widely used in the e-commerce industry for business 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 ApsaraDB for Redis for persistent storage.

  • Scenario 2: Inventory management systems that support stocktaking

    You can store commodity data in ApsaraDB RDS and inventory data in ApsaraDB for Redis. ApsaraDB for Redis 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 to improve response speed and user experience.

Livestreaming applications

Livestreaming is strongly reliant on ApsaraDB for Redis to store user data and chat records.

  • High availability

    ApsaraDB for Redis can be deployed in a master-replica architecture to significantly improve service availability.

  • High performance

    ApsaraDB for Redis 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 high-performance requirements.

  • High scalability

    ApsaraDB for Redis allows you to deal with traffic spikes during peak hours by scaling out an instance with a few clicks. The scale-out is completely transparent to users.