当前位置:网站首页>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 .
边栏推荐
- 芯动联科冲刺科创板:年营收1.7亿 北方电子院与中城创投是股东
- Bit.Store:熊市漫漫,稳定Staking产品或成主旋律
- 信息学奥赛一本通 1333:【例2-2】Blah数集 | OpenJudge NOI 3.4 2729:Blah数集
- 使用MySqlBulkLoader批量插入数据
- 实战回忆录:从Webshell开始突破边界
- 惊呆!原来 markdown 的画图功能如此强大!
- 全面解析零知识证明:消解扩容难题 重新定义「隐私安全」
- External interrupt experiment based on stm32f103zet6 library function
- Jinyuan's high-end IPO was terminated: it was planned to raise 750million Rushan assets and Liyang industrial investment were shareholders
- 1027 Colors in Mars
猜你喜欢

多伦多大学博士论文 | 深度学习中的训练效率和鲁棒性

Don't worry. This is the truth about wages in all industries in China

Oracle 获取月初、月末时间,获取上一月月初、月末时间

Erreur Keil de Huada Single Chip Computer La solution de Weak

International School of Digital Economics, South China Institute of technology 𞓜 unified Bert for few shot natural language understanding

全面解析零知识证明:消解扩容难题 重新定义「隐私安全」

Error reported by Huada MCU Keil_ Weak's solution

别焦虑了,这才是中国各行业的工资真相

Comprehensively analyze the zero knowledge proof: resolve the expansion problem and redefine "privacy security"

如何利用 RPA 实现自动化获客?
随机推荐
新中大冲刺科创板:年营收2.84亿 拟募资5.57亿
Substrate及波卡一周技术更新速递 20220425 - 20220501
Blink SQL内置函数大全
Cucumber自动化测试框架使用
金源高端IPO被终止:曾拟募资7.5亿 儒杉资产与溧阳产投是股东
“我让这个世界更酷”2022华清远见研发产品发布会圆满成功
Is it safe to buy stocks and open an account on the account opening link of the securities manager? Ask the great God for help
Market status and development prospect forecast of the global infusion needle less connector industry in 2022
One to one relationship
Buzzer experiment based on stm32f103zet6 library function
VS code 运行yarn run dev 报yarn : 无法加载文件XXX的问题
Crawl national laws and Regulations Database
[cloud based co creation] the "solution" of Digital Travel construction in Colleges and Universities
crontab的学习随笔
Labelimg usage guide
C# 二维码生成、识别,去除白边、任意颜色
Introduction to deep learning and neural networks
Is the account opening QR code given by CICC securities manager safe? Who can I open an account with?
基于STM32F103ZET6库函数外部中断实验
信息学奥赛一本通 1335:【例2-4】连通块