<< back to blog

Rails: ActiveRecord with MySQL Master-Slave(s)

software ~ rails ~ mysql ~ scaling

17 Oct, 2007

I’ve been wanting to use Rails with a master/slave MySQL setup for years. But the problem we’ve had is that ActiveRecord can’t be told to read from one server, but write to another.

We considered writing a plugin for this, but then found the ActsAsReadonlyable plugin. The good news is, this might not be necessary, as I recently discovered this MySQL Proxy tool that can do read/write splitting!

This looks really promising to me, anyone tried it?

You may also like...
Man makes nice software. Sells it. Makes $100,000 in 5 months
TODO.txt 2008 Ultimate Team Edition
Pretty Simple Software
Loose Coupling: Quote de jour
Cheap as Chips private Git hosting
Putting Git in the cloud with Amazon S3
Friendliest console installer EVER!
What Open Source stack do the gurus use?
Nice use of Google maps in registration
Generate State Machine diagrams from your POCO Entities

kick it on DotNetKicks.com
blog comments powered by Disqus