当前位置:网站首页>Master-slave separation of database
Master-slave separation of database
2022-07-19 00:23:00 【InfoQ】
Realization principle
matters needing attention
Master-slave delay
- Continue to add complexity , Introduce cache or message queue , Send a full amount of data to the external system synchronously when saving the database , Only where further business processing is required in the code can there be a way to check the cache or consume messages . This method handles the rollback and interception of exception scenarios , Is a more appropriate way .
- For some scenes that require high speed , Take the way of mandatory query of main database . This does not introduce complexity , But in extreme cases, it will affect the performance of the main library , And then affect the performance of the whole business . Although it's an extreme scene , But hanging up once costs a lot , Try to avoid .
The data access
Summary
边栏推荐
- Configuring VIM (4) from scratch -- some skills of keyboard mapping
- 解决华为笔记本安装驱动后浏览器频闪
- Effectively reduce project costs, starting with project procurement management
- C语言的内存管理-堆、栈等
- The relationship between filedescriptor and open file in liunx
- Wechat applet development learning 2 (template and configuration)
- 开发到底要不要转行软件测试?一篇足以 最全方位分析
- 2022-07-15 advanced network engineering (XIX) BGP state machine, interaction principles between peers, factors affecting the establishment of peer relations, peer table, routing table, detailed routin
- System. getProperty
- What do LETV employees rely on to live a "fairy life" without a boss?
猜你喜欢

没有老板的乐视员工过上“神仙日子”,靠什么?

Keepalived——解决 主备节点同时抢占VIP 的问题

WordPress主题分享:Avada主题v7.8.0免费下载 2022年最新版

2022-07-15 网工进阶(十九)BGP-状态机、对等体之间的交互原则、影响对等体关系建立的因素、对等体表、路由表、详细路由表、路由属性

Word2Vec Skip-gram 模型實現

笔记

WordPress Theme sharing: the7 theme v10.11 download the latest version of 2022 for free

vertx编程需注意的点

2022-07-15 advanced network engineering (XIX) BGP state machine, interaction principles between peers, factors affecting the establishment of peer relations, peer table, routing table, detailed routin
数据库的主从分离
随机推荐
程序中使用protobuf
boost.property_tree解析xml的帮助类以及中文解析问题的解决
推荐一个讲即时通信的博客
Experiment on process stack space
Checked to display and hide the hearts of favorite buttons
Keepalived——解决 主备节点同时抢占VIP 的问题
解决华为笔记本安装驱动后浏览器频闪
WordPress主题分享:Avada主题v7.8.0免费下载 2022年最新版
Envoy lifecycle management
Redis distributed cache - Data Persistence
[Vulnhub] Raven-2 (mysql-UDF提权)
微信小程序开发学习3(WXSS模板和全局配置)
[dynamic planning]dp24 house raiding (II) - medium
Kept - solve the problem that the primary and standby nodes seize the VIP at the same time
X Window
Memory management of C language - heap, stack, etc
Stateless design of application
MySQL's redolog and binlog
Shell's third day small exercise: access the self built nextcloud network disk service through the self built DNS server
checked实现收藏按钮红心的显示与隐藏