当前位置:网站首页>[Cloud Native] Service Industry Case - Solutions for Unpredictable Concurrency Scenarios
[Cloud Native] Service Industry Case - Solutions for Unpredictable Concurrency Scenarios
2022-07-30 15:32:00 【The sun is warm】
Directory
1. Customer Scenario
With the development of the sharing model, the shared power bank is developing rapidly. The shared power bank is an important branch of my country's energy supply system and an important part of new energy.
There are many doubts about the needs of the first container cloud customers, which can meet the customers' irregular high concurrency scenarios and ensure stable business expansion, which brings greater difficulties from the perspective of code adaptation and deployment.
2. Business challenges
1. The business peaks and valleys are uncertain. The business peaks are much higher than the daily business peaks, and the low peaks are also significantly reduced. The demand for flexibility in computing resources is very high.
2. The database has high performance requirements, and the proportion of read requests is high. With the advent of business peaks, there are also great demands on the elastic scaling of the database.
3. There are semi-transactional message requirements. Asynchronous decoupling capabilities are required for orders in progress, unpaid orders, and order completion.
3. Solutions
1. Serverless application engine SAE: In the combination of ECS and elastic scaling, it takes a few minutes to successfully pop up the computing power and wait for the application to start, and the flexibility is low. It is recommended to deploy front-end PHP applications through SAE, the deployment method is simple,The elastic scaling efficiency is increased to the 30-second level, the sensitivity is enhanced, the resource control is more flexible, and it is easier to cope with traffic peaks.
2. Relational database RDS: It supports read-write separation and vertical elastic scaling of the instance dimension. However, due to the architectural disadvantage of RDS, it takes a long time (half an hour) to expand the capacity of read-only nodes. It is often necessary to prepare resources in advance, and the waste of resources is obvious;It is recommended to migrate to PolarDB for MySQL. Based on the cloud-native product architecture, the expansion time of read-only nodes can reach the level of 5-10 minutes, and it also supports the ability to achieve vertical elastic scaling of the instance dimension together with DAS.
3. Message Queue RocketMQ version of distributed transaction messages can not only achieve decoupling between applications, but also ensure the final consistency of data.At the same time, traditional large transactions can be split into small transactions, which not only improves efficiency, but also prevents the overall rollback due to the unavailability of a related application, thus ensuring the availability of the core system to the greatest extent.
4. Customer Value
1. Deploying services through the serverless architecture improves the flexibility and flexibility of computing resources and increases the elastic efficiency by 80%.
2. Alibaba Cloud's leading elastic scaling technology and self-developed cloud-native database solution are used for database resources. The elastic scaling capability saves more than 70% of costs, and the efficiency of read-only nodes increases by more than 60%.
3. RocketMQ single-machine throughput of 100,000, supports 1 billion message accumulation, 0 messages are lost, and distributed architecture will not cause performance degradation due to accumulation
5. Knowledge points
1. For users with large differences in business peaks and valleys, the ECS+ESS product combination solution can meet the needs of basic elastic scenarios; if the customer's technology stack is suitable, the serverless architecture of SAE is more cost-effective and highly recommended.
2. The elastic capabilities of RDS and PolarDB are currently leading in technology. All the conveniences brought by the excellent architecture of PolarDB have fully supported users' business upgrades. It is recommended to choose PolarDB first.
3. RocketMQ is a self-developed product of Alibaba, which ensures that the message will be decoupled from the application without losing data, and at the same time, it will bring about the problem of data consistency, which is solved by the final consistency method of transaction characteristics.
6. Architecture diagram

边栏推荐
- SSE for Web Message Push
- MongoDB启动报错 Process: 29784 ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=14)
- 延时消息队列
- 华为再发「天才少年」召集令!曾放弃360万年薪的他也来首秀
- Alluxio为Presto赋能跨云的自助服务能力
- 1222. 可以攻击国王的皇后-力扣双百代码
- (Crypto essential dry goods) Detailed analysis of the current NFT trading markets
- GeoServer + openlayers
- About the data synchronization delay of MySQL master-slave replication
- How do luxury giants such as GUCCI and LV deploy the metaverse, should other brands keep up?
猜你喜欢

JVM性能调优

MaxWell scraped data

Huawei issues another summoning order for "Genius Boys"!He, who had given up an annual salary of 3.6 million, also made his debut

Distributed pre-course: MySQL implements distributed locks

5G-based Warehousing Informatization Solution 2022

MongoDB启动报错 Process: 29784 ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=14)

SQL 优化这么做就对了!

元宇宙邮局AI航天主题系列数字藏品 将于7月30日10:00点上线“元邮数藏”

(Crypto必备干货)详细分析目前NFT的几大交易市场

【云原生 • DevOps】influxDB、cAdvisor、Grafana 工具使用详解
随机推荐
Meta首份元宇宙白皮书9大看点,瞄准80万亿美元市场
postgresql的普通字符串和转义字符串
The evolution of content products has three axes: traffic, technology, and product form
Use of InputStream and OutputStream
JUC常见的线程池源码学习 02 ( ThreadPoolExecutor 线程池 )
In-depth analysis of Kubernetes application management
Distributed pre-course: MySQL implements distributed locks
Huawei issues another summoning order for "Genius Boys"!He, who had given up an annual salary of 3.6 million, also made his debut
golang图片处理库image简介
How is the B+ tree index page size determined?
去腾讯面试,直接让人出门左拐 :幂等性都不知道!
Redis cache penetration, breakdown, avalanche and consistency issues
Metaverse Post Office AI space-themed series of digital collections will be launched at 10:00 on July 30th "Yuanyou Digital Collection"
canal scrape data
Flink real-time data warehouse completed
100w的数据表比1000w的数据表查询更快吗?
Memory-mapped, bit-band operations
【云原生 • DevOps】influxDB、cAdvisor、Grafana 工具使用详解
Our company has used gateway services for 6 years, dynamic routing, authentication, current limiting, etc., a stable batch!
【云原生】阿里云ARMS业务实时监控