当前位置:网站首页>数据库的主从分离
数据库的主从分离
2022-07-16 22:34:00 【InfoQ】
实现原理
注意事项
主从延迟
- 继续增加复杂度,引入缓存或者消息队列,在存数据库时同步向外部系统发送一个全量的数据,在代码中需要进一步处理业务的地方才有查缓存或者消费消息的方式来进行。这种方式处理好异常场景的回滚和拦截,是一个比较合适的方式。
- 对于某些对速度要求比较高的场景,采取强制查主库的方式。这样没有引入复杂度,但极端情况下会影响主库的性能,进而影响整个业务的性能。虽然是极端场景,但挂一次就损失惨重,还是要尽量避免。
数据访问
小结
边栏推荐
- One of the series of articles on data access platform (DIP) | function and architecture analysis
- C # draw rectangle, ellipse and text for the picture
- Vmware6.0 connection Qunhui iSCSI
- Use protobuf in the program
- MySQL---ONE 基础语法
- P5.js grow up JS special effect
- [examination] answer to the examination of class 2201 in stage II (no responsibility for mistakes)
- Redis分布式缓存-Redis主从
- Solution to the problem of heavy snow Vegetable Flavor -- p4017 maximum food chain count
- This host supports Intel VT-x, but Intel VT-x is disabled
猜你喜欢

云平台简易上手操作

C语言的内存管理-堆、栈等

How to solve the problem of "Intel VT-x is disabled" when installing virtual machines

Memory management of C language - heap, stack, etc

Redis has three modes -- master-slave replication, sentinel mode, and cluster

CodeTON Round 1 (Div. 1 + Div. 2, Rated, Prizes)(A-C)
![[acwing周赛复盘] 第 60 场周赛20220716](/img/59/38fde90ff1d4221bd35379df1291d1.png)
[acwing周赛复盘] 第 60 场周赛20220716

毕业四年换了3份软件测试工作,我为何依然焦虑?

Mysql的redolog和binlog

Interviewer: after working for two years, you can't solve such a simple algorithm problem?
随机推荐
libtorch cmake
Vs publish websites using webdeploy
What do LETV employees rely on to live a "fairy life" without a boss?
Use protobuf in the program
VMware6.0连接群晖iscsi
Implementation of word2vec skip gram model
ANS1 code analysis
P5.js grow up JS special effect
System.getProperty
原子类及CAS
微信小程序開發學習3(WXSS模板和全局配置)
Redis distributed cache - redis master-slave
php通过form表单上传Excel文件并把Excel数据导入到数据库中
Word2Vec Skip-gram 模型實現
外部PLC触发VisionMaster多流程运行PLC部分特殊说明
Routine operation and maintenance inspection, find customers through the monitoring view
Explanation of the taste of snow vegetables -- searching for Literature
Account creation + login + contact form code
API design principles from the requirements of compiler for instruction set
Wechat applet Development Learning 3 (wxss Template and Global configuration)