当前位置:网站首页>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
边栏推荐
- Laravel adds custom helper functions
- MySQL8.0升级的踩坑历险记
- AcWing 1874. 哞加密(枚举,哈希)
- Detailed explanation of writing sequence and execution sequence of MySQL series SQL query statements
- 实践数据湖iceberg 第三十课 mysql->iceberg,不同客户端有时区问题
- qt 64位静态版本显示gif
- 让中小学生在快乐中学习的创客教育
- 学习 Go 语言 0x01:从官网开始
- Using Baidu PaddlePaddle EasyDL to accomplish specified target recognition
- @Valid, @ validated learning notes
猜你喜欢
微型机器人的认知和研发技术
升级cpolar内网穿透能获得的功能
年度最尴尬的社死瞬间,是Siri给的
Advanced file IO of system programming (13) -- IO multiplexing - Select
MIT: label every pixel in the world with unsupervised! Humans: no more 800 hours for an hour of video
Promise details
qt 64位静态版本显示gif
Usage of rename in cygwin
qt5. 8. You want to use SQLite in the 64 bit static library, but the static library has no method to compile the supporting library
redis优化系列(二)Redis主从原理、主从常用配置
随机推荐
MySQL面试题讲解之如何设置Hash索引
Share two practical shell scripts
分享两个实用的shell脚本
ImportError: libX11.so.6: cannot open shared object file: No such file or directory
PyTorch 神经网络训练器
卷积层和池化层总结
2022爱分析· 工业互联网厂商全景报告
论坛系统数据库设计
mysql创建存储过程及函数详解
Detailed explanation of MySQL creation stored procedure and function
Upgrade the functions available for cpolar intranet penetration
Advanced file IO of system programming (13) -- IO multiplexing - Select
解读2022机器人教育产业分析报告
Cygwin 中的 rename 用法
Résumé de la relation entre GPU, cuda et cudnn
详解MySQL中timestamp和datetime时区问题导致做DTS遇到的坑
Implementation of inserting millions of data into MySQL database in 10 seconds
laravel编写Console脚本
The way to change children's programming structure
QT信号量 无法解析的错误的总结