当前位置:网站首页>[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 |

边栏推荐
- leetcode - 买卖股票的最佳时机
- How to write test cases and a brief introduction to go unit test tool testify
- 【混合编程jni 】第六篇之native 中字符串和数组的操作
- Introduction de l'opérateur
- Unity布料系统_Cloth组件(包含动态调用相关)
- FPGA -VGA显示
- Learun low code OA system construction platform
- 【老卫搞机】090期:键盘?主机?全功能键盘主机!
- 6.24 learning content
- A simple and crude method for exporting R language list to local
猜你喜欢

固有色和环境色

UnityEditor編輯器擴展-錶格功能

Unity初学者肯定能用得上的50个小技巧

Smartbi gives you a piece to play with Boston matrix

Development and learning route of golang language

Simple test lightweight expression calculator fly

go语言中的私聊功能处理

Bs-gx-016 implementation of textbook management system based on SSM

Raspberry pie preliminary use

【界面】pyqt5和Swin Transformer对人脸进行识别
随机推荐
手机网上开户炒股安全吗 网上开户炒股安全吗
Extensions de l'éditeur d'unityeditor - fonctions de table
[cloud native topic -51]:kubesphere cloud Governance - operation - step by step deployment of microservice based business applications - database middleware redis microservice deployment process
买基金在哪里开户买比较安全
电子协会 C语言 1级 31 、 计算线段长度
Smartbi gives you a piece to play with Boston matrix
【强基计划】数学与物理竞赛中的微积分部分视频
6.24 learning content
Tensorrt notes (VII) sorting out tensorrt use problems
DAST black box vulnerability scanner part 5: vulnerability scanning engine and service capability
阿里云服务器的购买、基本配置、(xshell)远程连接、搭建环境
分享三種在Excel錶格中自動求和的方法
Partage de trois méthodes de sommation automatique dans un tableau Excel
简单测试轻量级表达式计算器Flee
【混合编程jni 】第十二篇 jnaerator
入侵痕迹清理
颜色搭配和相关问题
Weaving dream collection plug-ins are recommended to be free collection plug-ins
Is it reliable to open an account on a stock trading mobile phone? Is it safe to open an account online and speculate in stocks
Is it safe to open an account on the mobile phone to buy stocks? Is it safe to open an account on the Internet to speculate in stocks