当前位置:网站首页>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
边栏推荐
- Telephone encryption, middle 4 is replaced by * * * *
- TCP protocol three times handshake process
- LOGO特训营 第一节 鉴别Logo与Logo设计思路
- Recommendation of mobile app for making barcode
- 传智教育|如何转行互联网高薪岗位之一的软件测试?(附软件测试学习路线图)
- PostgreSQLSQL高级技巧透视表
- sqlserver对数据进行加密、解密
- Deveco device tool 3.0 release brings five capability upgrades to make intelligent device development more efficient
- 【米哈游2023届秋招】开启【校招唯一专属内推码EYTUC】
- Sqlserver encrypts and decrypts data
猜你喜欢

Enabling digital economy Fuxin software attends the BRICs high level Forum on Sustainable Development

From repvgg to mobileone, including mobileone code

复数在数论、几何中的用途 - 曹则贤

Nat. Commun.| Machine learning jointly optimizes the affinity and specificity of mutagenic therapeutic antibodies

抖音实战~评论数量同步更新

2022-07-04:以下go语言代码输出什么?A:true;B:false;C:编译错误。 package main import “fmt“ func main() { fmt.Pri

Energy momentum: how to achieve carbon neutralization in the power industry?

Play with grpc - go deep into concepts and principles

TLA+ 入门教程(1):形式化方法简介

i. Mx6ull driver development | 24 - platform based driver model lights LED
随机推荐
不同环境相同配置项的内容如何diff差异?
TCP protocol three times handshake process
机器人相关课程考核材料归档实施细则2022版本
i. Mx6ull driver development | 24 - platform based driver model lights LED
POM in idea XML dependency cannot be imported
Flask 上下文详解
Why should garment enterprises talk about informatization?
Implementation rules for archiving assessment materials of robot related courses 2022 version
odps 中 对表进行了一次备份,为什么在元数据库查m_table 时,两张表的逻辑大小不一致,但数
How to reset the password of MySQL root account
Common shortcut keys for hbuilder x
How can the advertising system of large factories be upgraded without the presence of large models
Service online governance
抖音实战~评论数量同步更新
PHP short video source code, thumb animation will float when you like it
Use blocconsumer to build responsive components and monitor status at the same time
Shell script implements application service log warehousing MySQL
常用的开源无代码测试工具
Alibaba launched a new brand "Lingyang" and is committed to becoming a "digital leader"
sqlserver对数据进行加密、解密