当前位置:网站首页>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
边栏推荐
- WebGIS framework -- kalrry
- Shell 脚本实现应用服务日志入库 Mysql
- UML diagram memory skills
- Telephone encryption, middle 4 is replaced by * * * *
- PHP short video source code, thumb animation will float when you like it
- MySQL存储数据加密
- Cadre WebGIS - kalrry
- Xiangjiang Kunpeng joined the shengteng Wanli partnership program and continued to write a new chapter of cooperation with Huawei
- Force buckle 2_ 1480. Dynamic sum of one-dimensional array
- 制作条形码的手机App推荐
猜你喜欢
Redis sentinel simply looks at the trade-offs between distributed high availability and consistency
复数在数论、几何中的用途 - 曹则贤
B站大量虚拟主播被集体强制退款:收入蒸发,还倒欠B站;乔布斯被追授美国总统自由勋章;Grafana 9 发布|极客头条
抖音实战~评论数量同步更新
Domestic database chaos
Embedded development: skills and tricks -- seven skills to improve the quality of embedded software code
2022-07-04: what is the output of the following go language code? A:true; B:false; C: Compilation error. package main import “fmt“ func main() { fmt.Pri
DevEco Device Tool 3.0 Release带来5大能力升级,让智能设备开发更高效
Logo special training camp section 1 Identification logo and logo design ideas
With this PDF, we finally got offers from eight major manufacturers, including Alibaba, bytek and Baidu
随机推荐
Solana链上应用Crema因黑客攻击停运
Telephone encryption, middle 4 is replaced by * * * *
好用app推荐:扫描二维码、扫描条形码并查看历史
LOGO特训营 第三节 首字母创意手法
保证接口数据安全的10种方案
PostgreSQL服务端编程聚合和分组
LOGO special training camp section I identification logo and Logo Design Ideas
Embedded development: skills and tricks -- seven skills to improve the quality of embedded software code
High school physics: linear motion
Recommendation of mobile app for making barcode
赋能数字经济 福昕软件出席金砖国家可持续发展高层论坛
服装企业为什么要谈信息化?
Is it safe to open an account in the stock of Caicai college? Can you only open an account by digging money?
How can the advertising system of large factories be upgraded without the presence of large models
Apachecn translation, proofreading, note sorting activity progress announcement 2022.7
不同环境相同配置项的内容如何diff差异?
Mysql root 账号如何重置密码
Zhiyang innovation signed a cooperation agreement with Huawei to jointly promote the sustainable development of shengteng AI industry
Basic structure of PostgreSQL - table
可视化任务编排&拖拉拽 | Scaleph 基于 Apache SeaTunnel的数据集成