当前位置:网站首页>Thinking (86): master-slave realization idea
Thinking (86): master-slave realization idea
2022-06-23 23:38:00 【fananchong2】
Master slave service
Game service architecture , There are usually some single point control clothes 、 Routing service, etc
These single point of service failures , It will cause the whole system to fail to work properly
These services are usually , Implement master-slave deployment , Achieve high availability
This paper introduces a general master-slave implementation
Service type
Usually , Depending on how the service processes the data , It can be classified as 2 class :
- Stateless service
- Stateful service
For stateless Services , Ensure that the failed service can be restarted in time
So the text is mainly aimed at stateful services , How to implement a general master-slave scheme
The problems faced by stateful servers in realizing master-slave
If the master-slave is realized from scratch , There are many challenges involved :
- The choice of the main problem
- The master and slave servers are in the same state
Due to node failure 、 Network partition is normal
above 2 A question , To solve the problem perfectly , It is difficult to meet the specifications in the production environment
Faced with this classic problem , There are already many products that offer solutions
among , Raft agreement , It provides an easy to understand implementation scheme
Etcd Raft modular
Etcd Achieve high availability and high reliability , It is through Raft To ensure that the
And its modules can be used directly
https://github.com/etcd-io/etcd/tree/main/contrib/raftexample Is based on Etcd Raft Modular implemented KV Examples of services
You can encapsulate a little based on this example , To realize a general master-slave framework
边栏推荐
猜你喜欢
Androidkotlin comprehensive and detailed class usage grammar learning guide

【Xilinx AX7103 MicroBalze学习笔记6】MicroBlaze 自定义 IP 核封装实验

Practice of issuing vouchers for Tiktok payment of 100000 TPS traffic

Generate post order traversal according to pre order traversal and mid order traversal

国内外最好的12款项目管理系统优劣势分析

C # read the occupied size of memory module and hard disk

Giants end up "setting up stalls" and big stalls fall into "bitter battle"

嵌入式接口之TIM定时器与NVIC的STM32模板库函数的一些解释

对不起,你的USB走线可能搞错了!

【HackTheBox】 meow
随机推荐
C WinForm custom progress bar ProgressBar
Cause analysis and Countermeasures for FANUC robot srvo-050 collision detection alarm (available for personal test)
开发协同,高效管理 | 社区征文
什么是免疫组织化学实验? 免疫组织化学实验
WebService客户端请求失败 can not create a secure xmlinputfactory
远程办公之:如何成为时间管理大师?| 社区征文
Giants end up "setting up stalls" and big stalls fall into "bitter battle"
Bitmap load memory analysis
[observation] Dell technology + Intel aoteng Technology: leading storage innovation with "nanosecond speed"
AIX系统月维护查什么(二)
Can the characteristics of different network structures be compared? Ant & meituan & NTU & Ali proposed a cross architecture self supervised video representation learning method CaCl, performance SOTA
抖音支付十万级 TPS 流量发券实践
详解四元数
The national post office and other three departments: strengthen the security management of personal information related to postal express delivery, and promote the de identification technology of per
Several cases of index invalidation caused by MySQL
Several guesses about the design of Tencent conference number
Nlog详解
不同网络结构的特征也能进行对比学习?蚂蚁&美团&南大&阿里提出跨架构自监督视频表示学习方法CACL,性能SOTA!...
[design] 1359- how umi3 implements plug-in architecture
FANUC机器人SRVO-050碰撞检测报警原因分析及处理对策(亲测可用)