当前位置:网站首页>[microservices] understanding microservices
[microservices] understanding microservices
2022-06-26 23:25:00 【fate _ zore】
Get to know microservices
Monomer architecture : Develop all the functions of the business in one project , Deploy as a package .
** advantage :** Simple architecture , Low deployment cost
** shortcoming :** High coupling degree ( Difficult to maintain 、 Upgrading is difficult )

Distributed architecture : Split the system according to business functions , Each business function module is developed as an independent project , It's called a service .
** advantage :** Reduce service coupling , It is conducive to service upgrading and expansion
** shortcoming :** The service invocation relationship is complicated

Although distributed architecture reduces service coupling , However, there are many problems to consider when splitting Services :
- How to define the granularity of service splitting ?
- How to realize remote call between services ?
- How to manage the invocation relationship of services ?
- How to perceive the health status of services ?
- How to maintain the service cluster address ?
People need to formulate a set of effective standards to restrict distributed architecture .
Microservices
Architectural features of microservices :
- Single responsibility : Microservices have smaller granularity , Each service corresponds to a unique business capability , Single responsibility
- autonomous : Team independence 、 Technology independence 、 Data independence , Independent deployment and delivery
- Service oriented : The service provides a unified standard interface , It has nothing to do with language and Technology
- Strong isolation : Isolate service calls 、 Fault tolerance 、 Downgrade , Avoid cascading problems

The above features of microservices In fact, it is setting a standard for distributed architecture , Further reduce the coupling between services , Independence and flexibility in providing services . High cohesion , Low coupling .
therefore , It can be considered that microservice is a distributed architecture scheme with good architecture design .
Among them in Java The most striking thing in the field is SpringCloud The scheme provided .
Microservice structure
The solution of microservice needs a technical framework to implement , Internet companies around the world are actively trying their own microservice landing technology , The most famous in China is SpringCould Ali Dubbo
Microservice technology comparison
| Dobbo | springCloud | springCloudAlibaba | |
|---|---|---|---|
| Registry Center | zookeeper,Redis | Eureka,Consul | Nacos,Eureka |
| Service remote invocation | Dubbo agreement | Feign(http agreement ) | Dubbo,Feign |
| Configuration center | null | SpringCloudConfig | SpringCloudConfig,Nacos |
| The service gateway | null | SpringCloudGateway,Zuul | SpringCloudGateway,Zuul |
| Service monitoring and protection | dubbo-admin, Weak function | Hystrix | Sentinel |

边栏推荐
- 【混合编程jni 】第十一篇之JNA详情
- CVPR2022-不对称分辨率图像的立体匹配
- Leetcode 718. Longest repeating subarray (violence enumeration, to be solved)
- Installing MySQL on Ubuntu
- 利用burp精准定位攻击者
- Why don't I recommend going to sap training institution for training?
- Is it safe to open an account and buy stocks? Who knows
- 从位图到布隆过滤器,C#实现
- Restfultoolkitx of idea utility plug-in -- restful interface debugging
- Système de distribution Unity Composants en tissu (y compris les dépendances d'appel dynamique)
猜你喜欢

go语言的服务发现、存储引擎、静态网站

50 tips that unity beginners can definitely use

入侵痕迹清理

邮箱附件钓鱼常用技法

The processing of private chat function in go language

CVE-2022-30190 Follina Office RCE分析【附自定义word模板POC】

Let agile return to its original source -- Some Thoughts on reading the way of agile neatness

开放世界机甲游戏-Phantom Galaxies
![[Old Wei makes machines] issue 090: keyboard? host? Full function keyboard host!](/img/78/ece6da9a26c9d93988dac30ce93f99.png)
[Old Wei makes machines] issue 090: keyboard? host? Full function keyboard host!

CVPR2022-不对称分辨率图像的立体匹配
随机推荐
Electronic Society C language level 1 31. Calculate line segment length
Color matching and related issues
L'outil de nettoyage des données flashtext améliore directement l'efficacité de plusieurs dizaines de fois
Operator介紹
ASP.Net Core创建MVC项目上传文件(缓冲方式)
ASP. Net core create MVC project upload file (buffer mode)
利用burp精准定位攻击者
Electronic Society C language level 1 29, alignment output
让敏捷回归本源——读《敏捷整洁之道》有感
Operations research says that in issue 66, Behrman also has "speech phobia"?
阿里云服务器的购买、基本配置、(xshell)远程连接、搭建环境
Are there any risks for the top ten securities companies to register and open accounts? Is it safe?
[Old Wei makes machines] issue 090: keyboard? host? Full function keyboard host!
树莓派初步使用
Système de distribution Unity Composants en tissu (y compris les dépendances d'appel dynamique)
Introduction to operator
leetcode 1143. Longest common subsequence (medium)
邮箱附件钓鱼常用技法
Raspberry pie preliminary use
golang语言的开发学习路线