当前位置:网站首页>Microservices -- Opening
Microservices -- Opening
2022-07-04 22:27:00 【Uncle meow】
Since this article, we have entered the world of microservices , In the next few articles, we will learn some principles of microservice components , In order to understand the essence of micro service architecture .
One 、 Case study
There is a large mall system , Designed by different development languages 100 Multiple services make up , There is a calling relationship between most services , If you want to change the deployment of these services to microservice deployment , It is almost difficult to implement with a unified microservice framework . So it USES Nginx Manage these services , First get the address of the service to be called through the local configuration file , Then assemble the address into URL, After that, all calls between services pass Nginx agent .
Two 、 Problems of traditional architecture
The architecture described in the case is the traditional architecture , It has four problems .
2.1 Complicated configuration , Online error prone
Every time the system is deployed 、 Add services 、 Manual configuration is required when adding or removing machines Nginx, And every environment is different , Therefore, it is easy to make mistakes in configuration , Therefore, when the server changes or the network changes, you need to sort out each configuration , Then measure the ruler for many times to basically ensure that there is no problem , But if there is no detailed inspection or some load balancing nodes make mistakes, it is difficult to find .
2.2 Add the machine to restart
When the number of visits to the system increases , We need to add servers to some services , But because it needs to be configured manually Nginx, So if you don't pay attention, you will make mistakes , And once the system goes wrong, it will be restarted Nginx, If the restart fails, it will have a great impact . So we should add servers in a short time and ensure that the configuration is accurate , It's a difficult process .
2.3 Single point load balancing
All systems have to go through Nginx agent , therefore Nginx It's easy to become the bottleneck of the whole system , If Nginx There's something wrong with the configuration , Then all services will be unavailable . At this time, there must be a little partner who said that every service should have its own Nginx
边栏推荐
- 面试题 01.01. 判定字符是否唯一
- High school physics: linear motion
- Solana链上应用Crema因黑客攻击停运
- Xiangjiang Kunpeng joined the shengteng Wanli partnership program and continued to write a new chapter of cooperation with Huawei
- LOGO特訓營 第一節 鑒別Logo與Logo設計思路
- 微服务--开篇
- New intersectionobserver usage notes
- 283. 移动零-c与语言辅助数组法
- 服务线上治理
- Kdd2022 | what features are effective for interaction?
猜你喜欢
With this PDF, we finally got offers from eight major manufacturers, including Alibaba, bytek and Baidu
Xiangjiang Kunpeng joined the shengteng Wanli partnership program and continued to write a new chapter of cooperation with Huawei
AscendEX 上线 Walken (WLKN) - 一款卓越领先的“Walk-to-Earn”游戏
Energy momentum: how to achieve carbon neutralization in the power industry?
湘江鲲鹏加入昇腾万里伙伴计划,与华为续写合作新篇章
Domestic database chaos
TLA+ 入门教程(1):形式化方法简介
i.MX6ULL驱动开发 | 24 - 基于platform平台驱动模型点亮LED
机器学习笔记 - 互信息Mutual Information
傳智教育|如何轉行互聯網高薪崗比特之一的軟件測試?(附軟件測試學習路線圖)
随机推荐
虚拟人产业面临的挑战
Representation of confidence interval
【Acwing】第58场周赛 题解
达梦数据凭什么被称为国产数据库“第一股”?
Éducation à la transmission du savoir | Comment passer à un test logiciel pour l'un des postes les mieux rémunérés sur Internet? (joindre la Feuille de route pour l'apprentissage des tests logiciels)
Implementation rules for archiving assessment materials of robot related courses 2022 version
赋能数字经济 福昕软件出席金砖国家可持续发展高层论坛
Flask 上下文详解
Convolutional neural network model -- lenet network structure and code implementation
能源势动:电力行业的碳中和该如何实现?
如何实现轻松管理1500万员工?
Nat. Commun.| 机器学习对可突变的治疗性抗体的亲和力和特异性进行共同优化
Telephone encryption, middle 4 is replaced by * * * *
Why should garment enterprises talk about informatization?
Xiangjiang Kunpeng joined the shengteng Wanli partnership program and continued to write a new chapter of cooperation with Huawei
Deployment of JVM sandbox repeater
leetcode 72. Edit Distance 编辑距离(中等)
好用app推荐:扫描二维码、扫描条形码并查看历史
A large number of virtual anchors in station B were collectively forced to refund: revenue evaporated, but they still owe station B; Jobs was posthumously awarded the U.S. presidential medal of freedo
idea中pom.xml依赖无法导入