当前位置:网站首页>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
边栏推荐
- DELTA热金属检测器维修V5G-JC-R1激光测量传感器/检测仪原理分析
- 关键路径的分析
- 1945. 字符串转化后的各位数字之和
- 八、QOS队列调度与报文丢弃
- C # detailed steps for connecting to MySQL database
- Eureka registers with each other, only showing each other or only showing problems in one
- Ctfshow network lost track record (1)
- 关于一些小需求,用案例方式记录
- Redis缓存雪崩、缓存穿透、缓存击穿
- Analysis of critical path
猜你喜欢

The ref value ‘xxx‘ will likely have changed by the time this effect function runs. If this ref......

Two excellent software of my love cracking, batch search text, image and video image quality enhancement
![[input ID number] is replaced by an asterisk, and input is cut into multiple small squares (similar)](/img/f0/7e3ea94e02a42b6055c40b58d1e39c.png)
[input ID number] is replaced by an asterisk, and input is cut into multiple small squares (similar)

Maintenance of delta hot metal detector principle analysis of v5g-jc-r1 laser measurement sensor / detector

Guanghetong & Qualcomm Internet of things technology open day successfully held

八、QOS队列调度与报文丢弃

Kubedm builds kubernetes cluster

Uncaught Error:Invalid geoJson format Cannot read property ‘length‘ of undefind

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

Timing analysis and constraints based on Xilinx
随机推荐
The framing efficiency of setpreviewcallbackwithbuffer will become lower
C process control statement
怎么理解数据网格(Data Mesh)
CVPR 2022 | 网络中批处理归一化估计偏移的深入研究
30. Learn highcharts label rotation histogram
Leetcode linked list problem -- 142. circular linked list II (learn the linked list by one question and one article)
System integration under microservice architecture
Study and use of cobalt strike
Why does Baidu search only crawl, but not show the page?
作价11.5亿元,1206件设备注入合资公司!SK海力士抢食大陆晶圆代工市场!
Maxwell is an easy-to-use software for capturing MySQL data in real time
Week 6 Linear Models for Classification (Part B)
SSM-使用@Async和创建ThreadPoolTaskExecutor线程池
quii cordova-plugin-telerik-imagepicker插件多图上传乱序
C#连接MySql数据库详细步骤
Uncaught Error:Invalid geoJson format Cannot read property ‘length‘ of undefind
面向千元级5G手机市场,联发科天玑700发布
C语言入门【详细】
苹果M1处理器详解:性能及能效成倍提升,Intel酷睿i9也不是对手!
Buuctf questions upload labs record pass-11~pass-20