当前位置:网站首页>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
边栏推荐
- Shell script learning -- practical case
- Using go language to build web server
- Practice of industrial defect detection project (III) -- Based on FPN_ PCB defect detection of tensorflow
- ROP Emporium x86_64 7~8题
- First day of rhcsa
- Go语言web中间件的使用
- Cuisine leetcode
- Innovation and management based on Scrum
- 【unity3D】直播间滚动式弹幕效果
- 进阶上将程序员必备素质
猜你喜欢

Linux redis - redis database caching service

Slave should be able to synchronize with the master in tests/integration/replication-psync. tcl

Actual combat of industrial defect detection project (IV) -- ceramic defect detection based on hrnet

Servlet template engine usage example

C language 171 Number of recent palindromes

Error installing Mongo service 'mongodb server' on win10 failed to start

本地远程访问云服务器的jupyter

Fashion MNIST 数据集分类训练

工业互联网+危化安全生产综合管理平台怎样建

How to solve the complexity of project document management?
随机推荐
高效音乐格式转换工具Music Converter Pro
Step principle of logical regression in machine learning
OCR识别PDF文件
Airtrack cracking wireless network password (Dictionary running method)
字符串去掉空格问题
[XJTU computer network security and management] Lecture 2 password technology
学习正则表达式选项、断言
Error installing Mongo service 'mongodb server' on win10 failed to start
JDBC JDBC
Solve the problem that the registered Google email Gmail mobile number cannot be used for verification
Flink stream processing engine system learning (II)
Codeforces round 784 (Div. 4) (a - H)
Practice of industrial defect detection project (III) -- Based on FPN_ PCB defect detection of tensorflow
First knowledge of C language ~ branch statements
What is the difference between varchar and char?
Classification and regression tree of machine learning
[wechat applet] set the bottom menu (tabbar) for the applet
1215_ Hello world used by scons
1、 Sequence model
Go语言web中间件的使用