76

MySQL主从复制与读写分离-xuewenchang-51CTO博客

 6 years ago
source link: http://blog.51cto.com/982439641/2069224
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
写操作都在主服务器上,实现数据的统一更新,从服务器只负责读取,负载均衡分担了数据库压力。其实在我们生活中有很多主从复制的应用,例如有很多连锁超市,总部负责产品的名称和价格等信息的录入,而所有的超市都会同步更新,做到了统一价格。而像淘宝的服务器,主要是为了分担负载,提升查询的性能,又快到双11了,当天那么多人同时购物,如果只有一台mysql定是不够的,恰好今天使用的软件amoeba也是阿里巴巴自己员工开发出来的,经过淘宝这么多用户的验证,效果不用怀疑。最后补充一句,Mysql主从复制与我们以前学习的sqlserver复制是一样的作用。

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK