当前位置:网站首页>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
边栏推荐
- MySQL面试题讲解之如何设置Hash索引
- Learning go language 0x01: start from the official website
- Upgrade the functions available for cpolar intranet penetration
- Usage of rename in cygwin
- MQ is easy to use in laravel
- tensorflow常用的函数
- 全网最细的短网址系统设计与实战
- nacos基础(7):配置管理
- MySQL8. 0 upgraded stepping on the pit Adventure
- 学习 Go 语言 0x04:《Go 语言之旅》中切片的练习题代码
猜你喜欢

Redis optimization series (II) redis master-slave principle and master-slave common configuration

积极参与中学机器人竞赛的意义

初探 Lambda Powertools TypeScript

PDMS软光刻加工过程

Interpretation of biological recognition in robot programming course

Redis学习之五---高并发分布式锁实战

Get things technology network optimization - CDN resource request Optimization Practice

Promise details

得物技术网络优化-CDN资源请求优化实践

升级cpolar内网穿透能获得的功能
随机推荐
配电房远程综合监控系统在10kV预制舱项目中的应用
Résumé de la relation entre GPU, cuda et cudnn
Write console script by laravel
Promise details
Mysql排序的特性详情
Prevent SQL injection in web projects
汇编语言 运行环境设置等教程链接整理
学习 Go 语言 0x02:对切片 Slice 的理解
@Valid, @ validated learning notes
全网最细的短网址系统设计与实战
少儿编程结构的改变之路
MySQL failed to insert the datetime type field without single quotation marks
Upgrade the functions available for cpolar intranet penetration
MySQL数据库10秒内插入百万条数据的实现
微型机器人的认知和研发技术
Overall plan management mode in maker Education
Laravel admin form validation
Learning go language 0x08: practice using error in go language journey
nacos基础(9):nacos配置管理之从单体架构到微服务
Significance of actively participating in middle school robot competition