当前位置:网站首页>[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 |
边栏推荐
- Wechat applet automatically generates punch in Poster
- What are the preferential activities for stock account opening? Is it safe to open a mobile account?
- DAST 黑盒漏洞扫描器 第五篇:漏洞扫描引擎与服务能力
- Extensions de l'éditeur d'unityeditor - fonctions de table
- Open world mecha games phantom Galaxy
- 6.24 learning content
- [machine learning] - Introduction to vernacular and explanation of terms
- Crawler and Middleware of go language
- WP collection plug-in tutorial no thanks for WordPress collection of rules
- Unity布料系统_Cloth组件(包含动态调用相关)
猜你喜欢
300 questions lesson 3 vector group
Three solutions for improving embedded software development environment
软件工程导论——第四章——形式化说明技术
Typera set title auto numbering
Service discovery, storage engine and static website of go language
[cloud native topic -51]:kubesphere cloud Governance - operation - step by step deployment of microservice based business applications - database middleware redis microservice deployment process
Extensions de l'éditeur d'unityeditor - fonctions de table
Unityeditor Editor Extension - table function
Smartbi gives you a piece to play with Boston matrix
数据清洗工具flashtext,效率直接提升了几十倍数
随机推荐
Is it safe to open an account and speculate in stocks on the mobile phone? Is it safe to open an account and speculate in stocks on the Internet
Microservices and container choreography in go
leetcode 1143. Longest common subsequence (medium)
通过两个stack来实现Queue
Electronic Society C language level 1 29, alignment output
300 questions lesson 3 vector group
[mixed programming JNI] Part 6: operation of strings and arrays in native
为什么EDR需要深度防御来打击勒索软件?
WP collection plug-in tutorial no thanks for WordPress collection of rules
leetcode - 买卖股票的最佳时机
ASP.Net Core创建MVC项目上传文件(缓冲方式)
您的连接不是私密连接
Is the low commission free account opening channel safe?
go语言的服务发现、存储引擎、静态网站
[cloud native topic -51]:kubesphere cloud Governance - operation - step by step deployment of microservice based business applications - database middleware redis microservice deployment process
Leetcode 718. 最长重复子数组(暴力枚举,待解决)
在手机开户买股票安全吗 网上开户炒股安全吗
电子协会 C语言 1级 30 、 等差数列末项计算
C语言:简单计算器多次使用代码实现
Different subsequence problems I