当前位置:网站首页>数据库读写分离目的是做什么[通俗易懂]
数据库读写分离目的是做什么[通俗易懂]
2022-07-28 19:46:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
数据库设置主从库,主库用来写数据,多个从库来查询数据。
- 消除读写的冲突,提高性能
- 主从的一致性问题需要考虑
- 主从一致,用的是binlog来同步,就是会慢 4.主从同步 就是两个思路 A、半同步复制 , 等从库复制成功才返回写成功 B、设一个key记录着一次写的数据,然后设置一个同步时间,如果在这个时间内,有一个读请求,看看对应的key有没有相关数据,有的话,说明数据近期发生过写事件,这样key的数据就继续读主库,否则就读从库
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/128897.html原文链接:https://javaforall.cn
边栏推荐
- Learning typescript (II)
- CVPR 2022 | in depth study of batch normalized estimation offset in network
- 华为发布首款电驱动系统DriveONE:充电10分钟续航200km
- Guanghetong & Qualcomm Internet of things technology open day successfully held
- (PMIC) full and half bridge drive csd95481rwj PDF specification
- Applet container technology improves mobile R & D efficiency by 500%
- C process control statement
- The 35 required questions in MySQL interview are illustrated, which is too easy to understand
- 35 道 MySQL 面试必问题图解,这样也太好理解了吧
- How to build a foreign environment for the self-supporting number of express evaluation? How much does it cost?
猜你喜欢

SSM-使用@Async和创建ThreadPoolTaskExecutor线程池

Maxwell is an easy-to-use software for capturing MySQL data in real time
![[Zhou Zhou has a prize] cloud native programming challenge](/img/0d/e26e37cddf3cf01b5e9dcaf7211106.png)
[Zhou Zhou has a prize] cloud native programming challenge "edge container" track invites you to fight!

(PMIC) full and half bridge drive csd95481rwj PDF specification

ctfshow 网络迷踪做题记录(1)

Deit: attention can also be distilled

Several skills of API interface optimization
![[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)

智能家居行业发展,密切关注边缘计算和小程序容器技术

编码用这16个命名规则能让你少写一半以上的注释!
随机推荐
30.学习Highcharts 标签旋转柱形图
1162. Map analysis - non recursive method
[input ID number] is replaced by an asterisk, and input is cut into multiple small squares (similar)
System integration under microservice architecture
实习日记第一周
quii cordova-plugin-telerik-imagepicker插件多图上传乱序
(turn) bubble sorting and optimization details
C#连接MySql数据库详细步骤
SQL server中提示对象名无效
详细讲解C语言12(C语言系列)
Explain C language 12 in detail (C language series)
Redis cache avalanche, cache penetration, cache breakdown
Invalid prompt object name in SQL Server
Learning typescript (II)
Cloud security core technology
Kubeadm搭建kubernetes集群
SQL Server 数据库之备份和恢复数据库
[cloud native] what is ci/cd| Ci/cd to smooth delivery obstacles
Deit: attention can also be distilled
Discussion: if you want to land Devops, is it enough to only consider a good PAAS container platform?