当前位置:网站首页>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
边栏推荐
猜你喜欢
Exploring the equipment and teaching of robot education
qt5.8 64 位静态库中想使用sqlite但静态库没有编译支持库的方法
Significance of actively participating in middle school robot competition
Interpreting the art created by robots
MQ is easy to use in laravel
26. Delete duplicates in ordered array
Maker education for primary and middle school students to learn in happiness
PDMS soft lithography process
On the integration of steam education in early childhood education
nacos基础(9):nacos配置管理之从单体架构到微服务
随机推荐
解读机器人创造出来的艺术
Advanced file IO of system programming (13) -- IO multiplexing - Select
Pytorch neural network trainer
MQ在laravel中简单使用
Learn go language 0x04: Code of exercises sliced in go language journey
项目实训-火爆辣椒
Oracle连通性测试小工具
laravel-admin时间范围选择器dateRange默认值问题
2022爱分析· 工业互联网厂商全景报告
Explain in detail the pitfalls encountered in DTS due to the time zone problems of timestamp and datetime in MySQL
Usage Summary of datetime and timestamp in MySQL
Detailed explanation of integer data type tinyint in MySQL
Simple construction of rebbitmq
Learn go language 0x03: understand the dependency between variables and initialization order
How to quickly query 10 million pieces of data in MySQL
On lambda powertools typescript
laravel 永远返回 JSON 响应
简易投票系统数据库设计
得物技术网络优化-CDN资源请求优化实践
mysql分表之后如何平滑上线详解