[ZODB-Dev] RelStorage: Write on master, read from slave(s)?

Anton Stonor anton at headnet.dk
Tue Oct 26 06:04:59 EDT 2010


Hi,

In order to scale an application using RelStorage I was thinking about
seperating reads and writes accross databases. Writes would go to a Mysql
master and the app would read from one or more Mysql slaves.

It looks like RelStorage already keeps seperate connections for read and
write (even though they are not exposed through configuration), so it is
probably easy to set up.

Would it work or is there a risk of getting inconsistent data? Or is that
entirely up to the ability of doing synchronous replication of the
underlying database?

/Anton
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zodb-dev/attachments/20101026/440d2d14/attachment.html 


More information about the ZODB-Dev mailing list