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 in the gaming industry.

  • Scenario 1: use ApsaraDB for Redis as a storage service

    Gaming applications can be deployed in a simple architecture, in which the main program runs on an Elastic Compute Service (ECS) instance and the business data is 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.

  • Scenario 2: 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).

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 commodity presentation 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 RDS and inventory data in ApsaraDB for Redis. ApsaraDB for Redis supports high concurrency and high traffic scenarios with its high performance. It can handle each inventory query with ease. This storage method ensures that not all queries are forwarded to RDS to improve response speed and user experience.

Live streaming applications

Live streaming 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 live streaming 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 upgrade is completely transparent to users.