Master/Slave Mysql Architecture vs Server/Read DB and Separate DB for writes only [closed]

烈酒焚心 提交于 2019-12-20 04:59:12

问题


What are the advantages and disadvantages for Master/Slave type mysql architectures vs load balancing web servers with read only db's in each using a separate server holding a mysql database just for the writes?


回答1:


Master/Slave type architecture is useful for when your application is "read heavy", that is a majority of connections to the database are for reading data as opposed to writing data.

Master/Slave allows you to scale out your application just by adding more hardware. Simply create a copy of the database on a new box and add it as a slave to the master.

With regards to

load balancing web servers with read only db's in each using a separate server holding a mysql database just for the writes?

This just sounds like a Master/Slave type architecture. With Master/Slave you want the slaves to be read only, as the master is the only place where data changes (and those changes propagate to the slaves).



来源:https://stackoverflow.com/questions/6560756/master-slave-mysql-architecture-vs-server-read-db-and-separate-db-for-writes-onl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!