当前位置:网站首页>Eureka Basics
Eureka Basics
2022-07-19 08:27:00 【Illusory clarity】
What is service governance
Spring Cloud Encapsulates the Netflix company-developed Eureka Module to implement service governance .
In traditional rpc In the remote call framework , Managing each service and the relationship between services is complex , Management is more complicated , So we need to use service governance , Manage dependencies between services , Service calls can be implemented 、 Load balancing 、 Fault tolerance, etc. to realize service discovery and registration .
What is service registration and discovery
Eureka Adopted CS Design framework ,Eureka Server A server that serves as a service registration function , It is a service registry . And other microservices in the system , Use Eureka The client connects to Eureka Server And maintain the heartbeat connection . In this way, the maintenance personnel of the system can pass Eureka Server To monitor the normal operation of each micro service in the system .
In service registration and discovery , There's a registry . When the server starts , Will put the current information of their own servers , For example, service address 、 The mailing address is registered in the registration center by alias . The other side ( consumer | Service providers ) Use this alias to get the actual service address from the registry , And then local RPC, call RPC The core design idea of remote call framework : It's in the registry , Because the registry is used to manage a dependency between each service ( The concept of service governance ), In any RPC In the remote framework , There will be a registry ( Store service address information ( Address of the interface )).
Eureka There are two components Eureka Server and Eureka Client
Eureka Server Provide service registration service
After each microservice node is started through configuration , Will be in Eureka Server Register in , such Eureka Server The service registry in will store information about all available service nodes , The information of the service node can be directly seen in the interface .
Eureka Client Access through the registry
It's a JAVA client , For simplification Eureka Server Interaction , The client also has a built-in 、 Use polling (round-robin) Load balancer of load algorithm . After starting the application , To Eureka Server Send a heartbeat ( The default period is 30 second ). If Eureka Server The heartbeat of a node is not received in multiple heartbeat cycles ,Eureka Server This service node will be removed from the service registry ( Default 90 second ).
边栏推荐
- 5g at that time, where will driverless driving go in the future?
- Dark horse programmer - software testing -16 stage 3 - function testing -175-198, URL composition introduction, request content and composition description line function test and database, URL composi
- mySQL 2502 2503错误
- Error received from peer ipv4/Connection reset by peer Paddleserving服务化部署后报错
- 从 B 站崩溃报告看分布式系统的技术栈
- No module named ‘yaml‘ 解决办法
- Csp-2020-6- role authorization
- Application of SCA on devsecops platform
- 1、决策树
- How to use curl in Jenkins pipeline and process response results
猜你喜欢

Ribbon负载均衡服务调用

Will it be a little late to realize your "wonderful" 360?

A small program about daily habit clock in

leetcode:287. 寻找重复数【快慢指针板子】

812. 最大三角形面积

超干货!彻底搞懂Golang内存管理和垃圾回收

OpenCV极坐标转换函数warpPolar的使用

真实案例:系统上线后Cpu使用率飙升如何排查?

With this "programmer code interview guide" from Zuo Chengyun (Zuo Shen), I joined byte

Redis distributed lock
随机推荐
Yolov5 label and establish your own data set
聊聊分布式锁
Detailed explanation of type, user-defined type, preliminary understanding of structure
Demo collection injection
Redis transaction
1、flask基础
Real case: how to check the soaring usage of CPU after the system goes online?
No module named 'yaml' solution
#yyds干货盘点#Cross-origin 跨域请求
Bean、
Unity: window size adaptation when running on the browser after webgl Publishing
Array exercise 3
数组习题三
全志V3s学习记录(13)OV2640的使用
How to use curl in Jenkins pipeline and process response results
从 B 站崩溃报告看分布式系统的技术栈
WPF 三维应用搭建(基础)
Deep learning 7 deep feedforward network 2
No module named ‘yaml‘ 解决办法
Redis常用数据类型——哈希(Hash)和有序集合 Zset(sorted set)