有没有人拆分数据库读写 OSCommerce 或任何 php 购物车?
我们正在修改 osCommerce,但我们的架构涉及用于数据库读取和数据库写入的单独集群。
有人把这些分开了吗?
We are modifying osCommerce, but our architecture involves separate clusters for db reads and db writes.
Has anyone separated these out?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你们看过mysql代理吗?您可以使用它自动将读取和写入发送到正确的服务器,即使对于您无法修改的应用程序也是如此。
此外,您可以使用
master_pos_wait()
函数保持读写同步。 (当您进行写入时,从该主机获取日志位置,然后向从机发出 master_pos_wait() 以等待它赶上)have you guys looked at mysql proxy? you could use it to automatically send reads and writes to the correct server, even for applications you can't modify.
additionally, you can use the
master_pos_wait()
function to keep your reads and writes synchronized. (when you do a write, get the log position from that master, then issue master_pos_wait() to the slave to wait for it to catch up)