当前位置:网站首页>Microservices (distributed architecture)
Microservices (distributed architecture)
2022-04-23 02:48:00 【REMLILI】
Distributed microservices :
- One 、 Microservices : Service split + The remote invocation + Service cluster
-
- ( One ) service :1 One business =1 A project =1 A service
- ( Two ) features : High cohesion 、 Low coupling
- ( 3、 ... and ) Components :
-
- 1、 Registry Center ( Maintain monitoring node information ): Service registration discovery framework
- 2、 Load balancing : In process load balancer
- 3、 Service remote invocation mapping :
- 4、 Flow control / Downgrade / Protect : Fuse ( Circuit breaker ): Service degradation fuse
- 5、 Unified service gateway routing ( entrance ):
- 6、 Unified configuration center :
- 7、 The message bus :
- 8、 Service link monitoring
- ( Four ) Service split : Avoid repetition 、 Database independence
- ( 5、 ... and ) The remote invocation : Business exposure interface 、 Request calling
- Two 、 Microservice implementation :SpringCloud
- 3、 ... and 、 Microservice implementation :SpringCloudAlibaba
- Four 、 Microservice implementation :Dubbo
One 、 Microservices : Service split + The remote invocation + Service cluster
Definition : A well designed distributed architecture
Purpose : High cohesion 、 Low coupling
shortcoming : complex
Noun : heartbeat 、 Particle size
( One ) service :1 One business =1 A project =1 A service
Service split granularity : Different functional units of the application ( service ) To break up ????????????
( Two ) features : High cohesion 、 Low coupling
1、 Single responsibility :
1 Corresponding services 1 A business capability
2、 Service oriented :
Microservices expose business interfaces
3、 autonomous :
Team independence 、 Technology independence 、 Data independence 、 Deploy independent
4、 Strong isolation :
Isolate service calls 、 Fault tolerance 、 Downgrade , Avoid cascading problems
( 3、 ... and ) Components :
1、 Registry Center ( Maintain monitoring node information ): Service registration discovery framework
Eureka 、Zookeeper、Consul、Nacos、Redis
2、 Load balancing : In process load balancer
Ribbon、Nignx、LoadBalancer
3、 Service remote invocation mapping :
Feign(http agreement ) 、Open Feign、Dubbo agreement
4、 Flow control / Downgrade / Protect : Fuse ( Circuit breaker ): Service degradation fuse
Alibaba Sentinel、Hystrix、Resilience4j
Service monitoring and protection
5、 Unified service gateway routing ( entrance ):
Zuul、SpringCloudGateway
Service monitoring and protection
6、 Unified configuration center :
Nacos、 SpringcloudConfig、
7、 The message bus :
Nacos、Bus
Service monitoring and protection
8、 Service link monitoring
Zipkin、Sleuth
( Four ) Service split : Avoid repetition 、 Database independence
Definition : Functional module splitting 、 One function module, one service 、 Independent database for each service
1、 Avoid duplicate development :
Different microservices 、 Don't develop the same business repeatedly
2、 Database independence :
Microservice data independence 、 Do not access databases of other microservices
3、 Business exposure interface : Implement remote call
Microservices can expose their business as interfaces 、 For other microservices to call
( 5、 ... and ) The remote invocation : Business exposure interface 、 Request calling
1、 Business exposure interface : The remote invocation
Microservices can expose their business as interfaces 、 For other microservices to call
Two 、 Microservice implementation :SpringCloud
Components :SpringCloudAlibaba
Realization :SpringBoot Automatic assembly
3、 ... and 、 Microservice implementation :SpringCloudAlibaba
The essence : Implementation part SpringCloud——SpringCloud The components of
Components :SpringCloudAlibaba
Four 、 Microservice implementation :Dubbo
版权声明
本文为[REMLILI]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220741227492.html
边栏推荐
- The shell monitors the depth of the IBM MQ queue and scans it three times in 10s. When the depth value exceeds 5 for more than two times, the queue name and depth value are output.
- Rhcsa day 3 operation
- The express project changes the jade template to art template
- ROP Emporium x86_ 64 7 ~ 8 questions
- Fashion MNIST dataset classification training
- Flink stream processing engine system learning (II)
- Les derniers noeuds K de la liste jz22
- OCR识别PDF文件
- Flink stream processing engine system learning (III)
- How big the program development of single chip microcomputer project can be, it represents your level of knocking code
猜你喜欢
Domestic lightweight Kanban scrum agile project management tool
Flink stream processing engine system learning (II)
期中汇总(概论+应用层+运输层)
国产轻量级看板式Scrum敏捷项目管理工具
Using go language to build web server
1、 Sequence model
Rhcsa day 1 operation
Intelligent agricultural management model
Leangoo brain map - shared multi person collaborative mind mapping tool
Six very 6 computer driver managers: what software is good for driver upgrade? Recommended by the best computer driver management software abroad
随机推荐
Les derniers noeuds K de la liste jz22
Those years can not do math problems, using pyhon only takes 1 minute?
Preliminary understanding of stack and queue
hack the box optimum靶机
Interpretation of the future development of smart agriculture
Download the genuine origin Pro 2022 tutorial and how to activate it
Slave should be able to synchronize with the master in tests/integration/replication-psync.tcl
The way to conquer C language
How to build an integrated industrial Internet plus hazardous safety production management platform?
Fashion MNIST dataset classification training
JVM runtime data area (I)
JS using the parameters of art template
《信息系统项目管理师总结》第七章 项目沟通管理
Rhcsa day 4 operation
基于Scrum进行创新和管理
If MySQL / SQL server judges that the table or temporary table exists, it will be deleted
解决 注册谷歌邮箱 gmail 手机号无法用于验证
JVM class loader
Niuke hand speed monthly race 48 C (I can't understand the difference. It belongs to yes)
The express project changes the jade template to art template