当前位置:网站首页>Alibaba microservice component Nacos registry
Alibaba microservice component Nacos registry
2022-07-19 14:31:00 【How to solve the problem, only】
One 、 What is? Nacos
A service discovery that is easy to build cloud native applications (Nacos Discovery)、 Service configuration (Nacos config) And service management platform
Registry Center + Configuration center + Service management
Nacos Key features of :
1、 Service discovery and service health detection
2、 Dynamic configuration services
3、 dynamic DNS service
4、 Services and metadata management
Two 、Nacos Registry Center


Core functions :
1、 Service registration
Nacos Client By sending REST The way of request to Nacos Server Register your services , Provide its own metadata , such as ip Address , Port information, etc ,Nacos Server After receiving the registration request , These metadata information will be stored in a double layer Map in .
2、 Service heartbeat
After service registration ,Nacos Client Will maintain a timed heartbeat to continuously notify Nacos Server , Indicates that the service is always available , To prevent being removed , Default 5s Send a heartbeat .
3、 Service synchronization
Nacos Server Service instances will be synchronized between clusters , To ensure the consistency of service information .
4、 Service discovery
Serving consumers (Nacos Client) When invoking the service provided by the service , Will send a REST Request to Nacos Server, Get the list of services registered above , And exist slowly Nacos Client Local , At the same time Nacos Client Start a scheduled task locally to pull the latest registry messages from the server and update them to the local cache .
5、 Service health check
Nacos Server A scheduled task will be started to check the health of the registered service instance , For more than 15s An instance that does not receive a heartbeat from the client will send it healthy Property is set to false( Client service discovery does not discover ), If an instance exceeds 30s No heartbeat received , Reject the instance directly ( If the rejected instance resumes sending heartbeat, it will be re registered ).
Mainstream registries
CAP, C – Uniformity ,A – Usability ,P – Partition tolerance 
边栏推荐
- unity 字幕滚动
- 4 a company has branches in six cities C1, C2, C3... C6. The connection between cities Ci and CJ (I, j=1,2,3,... 6) and the cost are listed in the following weighted adjacency matrix C
- 单片机软件定时器V2.0
- 论文阅读 TEMPORAL GRAPH NETWORKS FOR DEEP LEARNING ON DYNAMIC GRAPHS
- 滑動窗口最大值問題
- Si446 usage record (III): match function
- [Flink] Flink will report an error if it fails to set checkpoints once. Setlerablecheckpointfailurenumber does not work
- After 2000, he was hired as a special associate researcher of Nanjing University. He went to primary school at the age of 4 and was admitted to Nanjing University at the age of 14!
- Méthode de compilation de la courbe RPS d'O'Neill (originale par le Dr Tao)
- Homework for the third day of summer rhcsa training
猜你喜欢

4某公司在6个城市c1,c2,c3…c6中有分公司,已知城市ci到cj(I,j=1,2,3,…6)的联通情况下及费用的大小列于以下带权邻接矩阵中C中

unity 实现UI-背包装备拖拽功能

QChartView添加在QGridLayout中时覆盖了之前的控件

Win10 Microsoft Store打不开(开启TLS 1.2)

Redis 与 Mysql 的数据一致性

ping 命令还能这么玩?

Okaleido or get out of the NFT siege, are you optimistic about it?

第二届「绿树杯」数学竞赛排名与评析

matplotlib绘制多折线图(解决matplotlib中文无法显示问题)

欧奈尔的RPS曲线的编制方法(陶博士原创)
随机推荐
同一宿主机不同容器网络通信流程分析
Redis源码与设计剖析 -- 2.链表
[Luogu p3220] and not (construction) (digit DP) (inference)
Win10 Microsoft Store cannot be opened (enable TLS 1.2)
Is it true that tongdaxin opens an account? Is it safe for tongdaxin to open an account?
Optimizer of pytoch framework optimizer
05--- antireflective film
论文阅读 TEMPORAL GRAPH NETWORKS FOR DEEP LEARNING ON DYNAMIC GRAPHS
P8346 最澄澈的空与海【无向图拓扑】
通达信开户是真的吗?通达信开户安全吗?
Compréhension initiale de la fonction - partie 2
96. Different binary search trees
matplotlib绘制多折线图(解决matplotlib中文无法显示问题)
273. Grading - acwing question bank [DP]
Méthode de compilation de la courbe RPS d'O'Neill (originale par le Dr Tao)
[acwing] solution of the 60th weekly match
Several small open source projects of mine over the years
Redis源码与设计剖析 -- 1.简单动态字符串
华为无线设备配置智能漫游
智康护物业养老服务方案