当前位置:网站首页>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
边栏推荐
- 八、QOS队列调度与报文丢弃
- 实现瀑布流效果
- 面向千元级5G手机市场,联发科天玑700发布
- Using El date picker to report errors in sub components
- Paging function (board)
- LeetCode链表问题——面试题02.07.链表相交(一题一文学会链表)
- Ctfshow network lost track record (2)
- Why on earth is it not recommended to use select *?
- Go concurrent programming basics
- 4.1 various calling methods of member
猜你喜欢

How does lazada store make up orders efficiently? (detailed technical explanation of evaluation self-supporting number)

ICML2022 | 时序自监督视频transformer
![Leetcode interview question 02.07. Linked list intersection [knowledge points: Double pointers, stack]](/img/51/ec623bb609f5f57150e7244cf5f9b7.png)
Leetcode interview question 02.07. Linked list intersection [knowledge points: Double pointers, stack]

How to build a foreign environment for the self-supporting number of express evaluation? How much does it cost?

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

Adventures of little mouse: behind the scenes gags of moss 2

Backup and recovery of SQL Server database

Coding with these 16 naming rules can save you more than half of your comments!

Several skills of API interface optimization

顶级“Redis 笔记”, 缓存雪崩 + 击穿 + 穿透 + 集群 + 分布式锁,NB 了
随机推荐
Buuctf questions upload labs record pass-11~pass-20
Nacos principle
Leetcode interview question 02.07. Linked list intersection [knowledge points: Double pointers, stack]
The greatest romance of programmers~
Api 接口优化的几个技巧
Icml2022 | timing self-monitoring video transformer
上市1个月接连发生两起安全事故,理想L9还理想吗?
MySQL
多线程顺序运行的 4 种方法,面试随便问
苹果M1处理器详解:性能及能效成倍提升,Intel酷睿i9也不是对手!
ST法国三座工厂大罢工,芯片缺货情况或将更加严重!
Bus, protocol, specification, interface, data acquisition and control system in industrial communication field
4.1 various calling methods of member
CVPR 2022 | in depth study of batch normalized estimation offset in network
The development of smart home industry pays close attention to edge computing and applet container technology
探讨:想要落地DevOps的话,只考虑好的PaaS容器平台就够了么?
How to select and build the container cloud platform that hosts the key applications of the bank?
Two excellent software of my love cracking, batch search text, image and video image quality enhancement
微服务架构下的系统集成
怎么理解数据网格(Data Mesh)