当前位置:网站首页>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
边栏推荐
- GPU, CUDA,cuDNN三者的关系总结
- Detailed explanation of integer data type tinyint in MySQL
- 解析社交性机器人对基础科学的作用
- QT 怎么把QWigdet变成QDialog
- 解决由于找不到amd_ags_x64.dll,无法继续执行代码。重新安装程序可能会解决此问题,地平线(Forza Horizon 5)
- Interpreting the art created by robots
- qt 64位静态版本显示gif
- 学习 Go 语言 0x05:《Go 语言之旅》中映射(map)的练习题代码
- 学习 Go 语言 0x01:从官网开始
- 微型机器人的认知和研发技术
猜你喜欢
随机推荐
防止web项目中的SQL注入
QT 怎么把QWigdet变成QDialog
分享两个实用的shell脚本
Oracle connectivity test gadget
进程间通信 -- 消息队列
Cognition and R & D technology of micro robot
Exploring the equipment and teaching of robot education
PDMS软光刻加工过程
解析性能良好的机器人使用守则
Compress the curl library into a sending string of utf8 and send it with curl library
全网最细的短网址系统设计与实战
用curl库压缩成发送字符串为utf8并用curl库发送
AcWing 1874. 哞加密(枚举,哈希)
GPU, CUDA,cuDNN三者的关系总结
Redis optimization series (II) redis master-slave principle and master-slave common configuration
MySQL索引优化之分页探索详细介绍
MySQL partition table can be classified by month
nacos基础(5):nacos配置入门
让中小学生在快乐中学习的创客教育
MySQL对数据表已有表进行分区表的实现









