当前位置:网站首页>Nacos Foundation (9): Nacos configuration management from single architecture to microservices
Nacos Foundation (9): Nacos configuration management from single architecture to microservices
2022-04-23 11:26:00 【There is no retreat when sailing against the current】
List of articles
Preface
nacos Configuration management applications and distributed systems
From single architecture to micro service
1. Monomer architecture
Web Early application , Most of web Engineers package all functional modules together and put them in one web Running in the container , All function modules use the same database , meanwhile , It also provides API and UI Access to the web Module etc. .

Although it's also modular logic , But in the end, it will be packaged into a single application , This method deploys all functions in one web The system running in the container is called monomer architecture .
advantage :
- High development efficiency : The interaction between modules adopts local call , And save the interactive discussion time and development cost between microservices
- Easy to test :IDE Are designed to develop a single application , Easy to test , The complete system can be started directly locally
- Easy to deploy : The cost of operation and maintenance is small , Package directly into a complete package , Copied to the web Under the container, you can run .
shortcoming :
- The complexity is getting higher , Poor maintainability : All businesses are deployed together , More and more complicated , Pull one hair and move the whole body .
- The iteration speed of the version gradually slows down : To modify a place, you need to compile and deploy the whole application , Long startup time , Regression test takes too long .
2. Microservices
Many large companies , Solve the above problems by adopting micro Service Architecture . The idea is not to develop a large single application , Instead, its application is broken down into small , Interconnected microservices .
A microservice generally performs a specific function , Like order service , User service, etc . Every microservice is a complete application , All have their own business logic and database . Some micro services will also release API For other microservices and application clients .
such as , According to the system described above, it can be decomposed as follows :

Each business module uses independent services to complete , This microservice architecture pattern also affects the relationship between applications and databases , Unlike traditional methods, multiple business modules share a database , Microservice architecture each service has its own database .
Microservice benefits :
- Divide and rule , Single responsibility : Easy to develop , Understanding and maintenance , Facilitate the splitting and management of the team
- Telescopic : It can scale the specified service separately
- Parts are easy to modify , Easy to replace , Easy to deploy , Conducive to continuous integration and rapid iteration
- Not subject to any technology stack
版权声明
本文为[There is no retreat when sailing against the current]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231117595028.html
边栏推荐
- 分享两个实用的shell脚本
- RebbitMQ的初步了解
- QT 64 bit static version display gif
- 赛微微电科创板上市破发:跌幅达26% 公司市值44亿
- Learning go language 0x02: understanding slice
- 配电房远程综合监控系统在10kV预制舱项目中的应用
- Prevent SQL injection in web projects
- 学习 Go 语言 0x05:《Go 语言之旅》中映射(map)的练习题代码
- Tensorflow使用keras创建神经网络的方法
- Analyzing the role of social robots in basic science
猜你喜欢

分享两个实用的shell脚本

Analyzing the role of social robots in basic science

配电房远程综合监控系统在10kV预制舱项目中的应用

Maker education for primary and middle school students to learn in happiness

Cognition and R & D technology of micro robot

docker MySQL主从备份

PDMS软光刻加工过程

Using Baidu PaddlePaddle EasyDL to accomplish specified target recognition

升级cpolar内网穿透能获得的功能

Overall plan management mode in maker Education
随机推荐
得物技术网络优化-CDN资源请求优化实践
After the MySQL router is reinstalled, it reconnects to the cluster for boot - a problem that has been configured in this host before
Detailed explanation of integer data type tinyint in MySQL
学习 Go 语言 0x02:对切片 Slice 的理解
讯飞2021年营收183亿:同比增41% 净利为15.56亿
分享两个实用的shell脚本
Learn go language 0x06: Fibonacci closure exercise code in go language journey
VM set up static virtual machine
MQ的了解
Change exchange II - [leetcode]
配电房远程综合监控系统在10kV预制舱项目中的应用
Advanced file IO of system programming (13) -- IO multiplexing - Select
Promise details
Implementation of partition table of existing data table by MySQL
解决由于找不到amd_ags_x64.dll,无法继续执行代码。重新安装程序可能会解决此问题,地平线(Forza Horizon 5)
TclError: no display name and no $DISPLAY environment variable
docker MySQL主从备份
解析性能良好的机器人使用守则
进程间通信 -- 消息队列
Detailed explanation of how to smoothly go online after MySQL table splitting