当前位置:网站首页>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
边栏推荐
- The sandbox and bayz have reached cooperation to jointly drive the development of metauniverse in Brazil
- 6、STM32——串口数据收发基础
- HDLBits-> Circuits-> Arithmetic Circuitd-> 3-bit binary adder
- 19 MySQL optimizations commonly used in projects
- Detailed quaternion
- MySQL事务隔离
- ARouter 组件之间跳转需免混淆
- kubernetes之常用核心资源对象
- Kotlin set list, set, map operation summary
- Which securities dealers recommend? Is online account opening safe?
猜你喜欢

C# Winform 自定义进度条ProgressBar

Talking about the knowledge of digital transformation

Why do MySQL indexes use b+ trees at the bottom? After reading this article, you can easily handle the interview.

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

腾讯会议号设计的几种猜测

Bitmap load memory analysis

HDLBits-> Circuits-> Arithmetic Circuitd-> 3-bit binary adder
Summary of cloud native pipeline tools

iNFTnews | 创造者经济的未来在Web3世界中该去向何处?

The Sandbox 与 BAYZ 达成合作,共同带动巴西的元宇宙发展
随机推荐
Zynq ultrascale+ RF data converter IP configuration - ADC
2022 point de connaissance de l'examen des ingénieurs en sécurité de l'information: contrôle d'accès
Several cases of index invalidation caused by MySQL
E: 无法获得锁 /var/lib/dpkg/lock
Eight models of data analysis: detailed PEST model
HAOGE's blog Road
网站如何在Google建立索引
The Sandbox 归属周来啦!
The sandbox and bayz have reached cooperation to jointly drive the development of metauniverse in Brazil
Go language core 36 lectures (go language practice and application 23) -- learning notes
"Shanda Diwei Cup" the 12th Shandong ICPC undergraduate program design competition
Bilibili × Blue bridge cloud course | online programming practice competition is new!
Kotlin 协程 异步 异步流
《阿里云天池大赛赛题解析》——O2O优惠卷预测
微信视频号如何用 PC 电脑做直播?
开发协同,高效管理 | 社区征文
Summary of cloud native pipeline tools
MySQL事務隔離
2022年信息安全工程師考試知識點:訪問控制
Kotlin coroutine asynchronous flow