当前位置:网站首页>(posted) comparison of Eureka, consumer and Nacos 1
(posted) comparison of Eureka, consumer and Nacos 1
2022-07-27 07:16:00 【cleble】
eureka、consul、nacos The main function is to provide the service of Registration Center , The latter two also have the function of configuration center ;
What is a registry ?
The registry was created to decouple service providers (Provider) With consumers (Consumer) The relationship between , Distributed design architecture , The number of service providers is not dynamic , In traditional static LB The scheme , Unable to perceive this change well ;
In the microservice architecture, the registry can be said to be a service relationship ” Mail list “, It records the mapping relationship between service and service address . In a distributed architecture , Services will register here , When a service needs to call another service , Just find the address of the service here , To call .

The registry mainly provides two important functions : Service registration 、 Service discovery .
What problems can a registry help us solve ?
In a distributed architecture , In addition to considering the relationship between service providers and consumers , We should also consider how to solve a series of more complex problems :
- After the service provider registers , How to be discovered in time ;
- After a service outage , How to go offline in time ;
- When the service call is abnormal , How to effectively avoid the avalanche problem ;
- In high traffic 、 Under great pressure , How to carry out effective horizontal expansion ;
- How does the registry achieve its own high availability ;
eureka、consul、nacos contrast
| eureka | consul | nacos | |
|---|---|---|---|
| Integrated intrusion | Integrated within the application | Hardly any | Hardly any |
| CAP | AP | CP Consistency led to elections Leader The whole period consul Unavailable | CP+AP |
| Version of the iteration | no | yes | yes |
| Configuration center | no | yes | yes , accord with Spring boot Development specifications for , Support dynamic refresh |
| access protocol | http | http/dns | http/dns/udp |
| Integration support | spring cloud | spring cloud/k8s | spring cloud/k8s/dubbo |
| How well you can handle it | Easy to | More complicated | Very easy , Chinese document |
| Avalanche protection | I won't support it | I won't support it | Support |
边栏推荐
- Leetcode series (I): buying and selling stocks
- DNA (deoxyribonucleic acid) supply | carbon nanotube nucleic acid loaded dna/rna material | dna/rna nucleic acid modified magnetic nanoparticles
- Student achievement management system based on SSM
- Interpretation of deepsort source code (VII)
- Watermelon book learning notes - Chapter 4 decision tree
- Calledprocesserror during pre commit install
- R2live code learning record (3): radar feature extraction
- R2LIVE代码学习记录(3):对雷达特征提取
- Jmeter:接口自动化测试-BeanShell对数据库数据和返回数据比较
- Gbase 8C - SQL reference 6 SQL syntax (11)
猜你喜欢

The vscode run command reported an error: the mark "&" is not a valid statement separator in this version.

PNA modified polypeptide arms PNA PNA DNA suc aapf PNA suc - (ALA) 3 PNA

基于SSM图书借阅管理系统

Basic statement of MySQL (1) - add, delete, modify and query

Image super-resolution evaluation index

内部类--看这篇就懂啦~

Jmeter:接口自动化测试-BeanShell对数据库数据和返回数据比较

基于SSM学生学籍管理系统

Watermelon book learning Chapter 5 --- neural network

35. Search Insert Position 搜索插入位置
随机推荐
tableau prep连接maxcompute,只是书写很简单的sql,为啥报这个错误呢?
Image super-resolution evaluation index
ESP8266(ESP-12F) 第三方库使用 -- SparkFun_APDS9960 (手势识别)
Student status management system based on SSM
Automatically generate UML sequence diagram according to text (draw.io format)
OpenGL development with QT (I) drawing plane graphics
Jest single test style problem [identity obj proxy] NPM package
MySQL query operation index optimization practice
Drools(5):Drools基础语法(3)
A Competitive Swarm Optimizer for Large Scale Optimization
Gbase 8C product introduction
Shell programming specifications and variables
PNA polypeptide PNA TPP | GLT ala ala Pro Leu PNA | suc ala Pro PNA | suc AAPL PNA | suc AAPM PNA
MySQL quickly compares database table data
把Excel转换成CSV/CSV UTF-8
[latex format] there are subtitles side by side on the left and right of double columns and double pictures, and subtitles are side by side up and down
Drools (5): drools advanced syntax
Quartus:往别人的工程添加.v文件报错
算法--斐波那契数列(Kotlin)
Analysis of online and offline integration mode of o2o E-commerce