当前位置:网站首页>What is the purpose of database read-write separation [easy to understand]
What is the purpose of database read-write separation [easy to understand]
2022-07-28 21:32:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm your friend, Quan Jun .
data Library setting master-slave Library , The main library is used to write data , Query data from multiple repositories .
- Eliminate conflicts between reading and writing , Improve performance
- The consistency of master and slave needs to be considered
- The master and the subordinate are identical , It's using binlog Synchronization , It will be slow 4. Master slave synchronization There are two ideas A、 Semi-synchronous replication , Wait until the copy from the library is successful before returning to write success B、 Set a key Record the data written once , Then set a synchronization time , If at this time , There is a read request , Look at the corresponding key There's no data , Some words , It indicates that the data has been written recently , such key Continue to read the data in the main database , Otherwise, read from the library
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/128897.html Link to the original text :https://javaforall.cn
边栏推荐
- 在子组件中使用el-date-picker报错
- The ref value ‘xxx‘ will likely have changed by the time this effect function runs. If this ref......
- NTP server time (view server time)
- Niuke turns on the camera and the picture disappears a few seconds later | the picture flashes when the camera is turned on
- 瑞典法院取消对华为和中兴的5G频谱拍卖禁令
- Capture video by buffering
- ABB electromagnetic flowmeter maintenance signal transmitter maintenance 41f/e4 technical parameters
- ST法国三座工厂大罢工,芯片缺货情况或将更加严重!
- [cloud native] what is ci/cd| Ci/cd to smooth delivery obstacles
- 八、QOS队列调度与报文丢弃
猜你喜欢

SSM use @async and create threadpooltaskexecutor thread pool

CVPR 2022 | 网络中批处理归一化估计偏移的深入研究

Cobal Strike的学习与使用

蚂蚁集团境外站点 Seata 实践与探索

Bus, protocol, specification, interface, data acquisition and control system in industrial communication field

实现瀑布流效果

Nacos principle

如何度量软件架构

(PMIC)全、半桥驱动器CSD95481RWJ PDF 规格

SQL Server 数据库之备份和恢复数据库
随机推荐
Automatic filling of spare parts at mobile end
小霸王被申请破产!公司成“老赖” ,法人被限制高消费
(turn) bubble sorting and optimization details
Several skills of API interface optimization
详细讲解C语言12(C语言系列)
ctfshow 做题 web模块 web11~web14
System integration under microservice architecture
证券企业基于容器化 PaaS 平台的 DevOps 规划建设 29 个典型问题总结
C语言入门【详细】
Cloud security core technology
Redis cache avalanche, cache penetration, cache breakdown
Maxwell is an easy-to-use software for capturing MySQL data in real time
MySQL
聊一聊数据库的行存与列存
Why on earth is it not recommended to use select *?
Attribute based encryption simulation and code implementation (cp-abe) paper: ciphertext policy attribute based encryption
Icml2022 | timing self-monitoring video transformer
(PMIC)全、半桥驱动器CSD95481RWJ PDF 规格
怎么理解数据网格(Data Mesh)
[tidb] importing TXT documents into the database is really efficient