当前位置:网站首页>Embracing cloud Nativity: Practice of Jiangsu Mobile order center
Embracing cloud Nativity: Practice of Jiangsu Mobile order center
2022-06-27 19:47:00 【InfoQ】
Construction background : Business development changes rapidly
- With the expansion of emerging businesses such as government and enterprises , Orders are growing rapidly , Original application + The database architecture is under great pressure , One side , The application of chimney type is difficult to expand laterally , On the other hand , New data components need to be introduced to buffer database pressure .
- seckill 、 Emerging businesses such as live broadcasting and goods delivery have brought about a sudden increase in order volume in a short time , How to deal with the requirements for host resources in a short period of time and reduce the expansion cost as much as possible ? We need to consider whether we can make a trade-off between our own services and external requests when the system is overloaded , Ensure the stability of core services , Realize the resilience of the system .
- In order to seize the new market , Demand lead times are getting shorter , Versions are launched more frequently , The traditional R & D delivery mode of manual workshop can no longer meet the business delivery requirements , Need to be in DevOps Introduce the R & D efficiency tool system under the concept .
Problem solving : Embrace cloud native

Cloud native overall architecture

- Infrastructure layer : The order center runs on a virtualized infrastructure , platform PaaS Components running on virtual machines , Business applications run on containers .
- The data layer : A large number of order centers use cloud native PaaS Components , Include redis、MQ、ElasticSearch etc. , Reduce the pressure on the database while ensuring the high availability of the data layer .
- Application server : Based on microservice service, several microservice lines have been built , The unified service governance of multiple micro service lines is realized by constructing the micro service gateway of the order center , Ensure high availability of the order center .
- Application client : Multi channel and multi type client access requests , Through the first Nginx Then enter the order center . The order center deploys the production center 、 Gray scale center and disaster recovery center ,Nginx It is mainly used for switching between multiple centers .
- Unified monitoring of operation and maintenance : Build an integrated research and operation tool to realize agile research and development 、 Fast iteration , Realize multi-dimensional unified monitoring and display of business and system through unified log and operation and maintenance monitoring , The problem can be quickly located through the call chain .
Cloud native application practice
Cloud native practice 1: Cloud native PAAS platform

Cloud native practice 2: Micro service

Cloud native practice 3: Micro service governance

- Service failure : The service of the order center can be configured , When the number of call failures in the downstream service unit time reaches the threshold , Prevent the whole system from chain reaction or even avalanche , Temporarily stop the call to the service .
- Service restriction : When an entry requests QPS When the service configuration threshold is exceeded , For example, when high concurrent order query requests occur instantaneously , The order query service can be configured to restrict query requests from certain channels , To ensure that this service is not overwhelmed .
- service degradation : As shown in the figure above , When the service pressure of the order center reaches a certain level , The order center is configured with a service degradation policy , Downgrade highly tolerant Services , For example, the query service is degraded , To ensure the stability of core services such as order creation service .
Cloud native practice 4: Integration of research and operation

Cloud native practice 5: How to live / Gray switch

- Grayscale routing switching : After the new version is released in the gray Center , Adjust routing policy , Switch part of the traffic to the gray center , function 2 It will be officially released to Nanjing Center only after it is verified that there is no problem .
- Multi center cache synchronization : During the release , The cached data between the two centers needs to be synchronized , adopt MQ The mutual notification mechanism loads the changed data into the cache of each center , And through the database log 、 Additional means such as message monitoring ensure the correctness and consistency of multi center cache synchronization , The seamless switching between production center and gray center is realized .
- Data layer version control : There are version number fields in the database tables , It can identify the data involved in the old and new versions , It can be used for problem location and version rollback , Realize the gray-scale publishing of the data layer .
Cloud native practice 6: Multidimensional monitoring and operation and maintenance

- Realize log monitoring and call chain output through unified log collection , Quickly locate the problem through the call chain .
- Have comprehensive monitoring, display and analysis of business and system , Realize the monitoring linkage between business and system , It is convenient to quickly locate the cause of abnormality .
- Support the closed-loop management of alarms : Support alarm collection 、 Inform the relevant responsible person 、 Alarm timeout reminder 、 Problem handling and recording 、 Alarm recovery confirmation 、 Alarm off .
- Operation and maintenance personnel use systematic operation and maintenance tools , Can be found in 5 Quickly find the root cause of the problem and deal with it within minutes , Greatly reduce the time required for overall fault repair .
Cloud native practice 7: Normalized fault injection

The value of cloud native construction
- Early verification of version through online gray-scale release , Seamless switching between production and grayscale is realized .
- Through the implementation of the version of the rapid release online 、 Shorten the iteration period , Launch one version a week .
- Monthly R & D capacity increases 50%.
- Order creation performance improved to 5 Ten thousand brush / minute .
- The order query performance has been improved to 3000 pen / second .
- Realize fault isolation and recovery : Deal with failure , Through active control of channel access points , Connect transactions to a functioning access point , Complete isolation of faults . Through the automatic restart and capacity expansion and contraction of the fault point, the fault recovery can be realized .
- When the system pressure reaches a certain level , It can effectively realize current limiting and high-risk fusing / Degraded processing .
边栏推荐
- 一位平凡毕业生的大学四年
- 买股票在券商经理的开户链接上开户安全吗?求大神赐教
- 【云驻共创】高校数字化差旅建设“解决之道”
- 云笔记到底哪家强 -- 教你搭建自己的网盘服务器
- Market status and development prospect forecast of global 4-methyl-2-pentanone industry in 2022
- Erreur Keil de Huada Single Chip Computer La solution de Weak
- 网络传输是怎么工作的 -- 详解 OSI 模型
- 广发期货开户安全吗?
- 深度学习和神经网络的介绍
- 你知道 log4j2 各项配置的全部含义吗?带你了解 log4j2 的全部组件
猜你喜欢
Jinyuan's high-end IPO was terminated: it was planned to raise 750million Rushan assets and Liyang industrial investment were shareholders
New Zhongda chongci scientific and Technological Innovation Board: annual revenue of 284million and proposed fund-raising of 557million
Introduction to deep learning and neural networks
International School of Digital Economics, South China Institute of technology 𞓜 unified Bert for few shot natural language understanding
DFS and BFS simple principle
别焦虑了,这才是中国各行业的工资真相
昱琛航空IPO被终止:曾拟募资5亿 郭峥为大股东
华大单片机KEIL报错_WEAK的解决方案
华大单片机KEIL添加ST-LINK解决方法
Bit. Store: long bear market, stable stacking products may become the main theme
随机推荐
OpenSSL client programming: SSL session failure caused by an obscure function
Photoshop layer related concepts layercomp layers move rotate duplicate layer compound layer
Current market situation and development prospect forecast of the global ductless heating, ventilation and air conditioning system industry in 2022
芯动联科冲刺科创板:年营收1.7亿 北方电子院与中城创投是股东
数仓的字符截取三胞胎:substrb、substr、substring
Substrate及波卡一周技术更新速递 20220425 - 20220501
流程判断-三目运算-for循环
Informatics Orsay all in one 1335: [example 2-4] connected block
Oracle 获取月初、月末时间,获取上一月月初、月末时间
Erreur Keil de Huada Single Chip Computer La solution de Weak
RANSAC的代码和原理
买股票在券商经理的开户链接上开户安全吗?求大神赐教
Bit. Store: long bear market, stable stacking products may become the main theme
基于STM32F103ZET6库函数蜂鸣器实验
明美新能源冲刺深交所:年应收账款超6亿 拟募资4.5亿
海底电缆探测技术总结
Four years of College for an ordinary graduate
惊呆!原来 markdown 的画图功能如此强大!
Bit.Store:熊市漫漫,稳定Staking产品或成主旋律
Mathematical derivation from perceptron to feedforward neural network