I am using Rails 3.0.9. (With ruby 1.9.3)
I have been looking into some replication gems (data_fabric, octopus, multi_db).
Been wondering what is the best solution.
Production ready, fast, AR3 compatible…
I thought it was octopus till I saw this issue:
https://github.com/tchandy/octopus/issues/60
I don’t need sharding at this point, all I needs is the ability to send Reads to the slaves, and writes to the master.
What is the best solution for the above needs?
Octopus is still the one to pick, despite that issue. We use it at Square for the use case you describe.
Commits to relax the dependency went in directly after v0.4.0, so it’s safe to lock to a git revision:
Other changes in master look mostly 3.1 and spec related, plus a single performance commit (my commit), so it’s probably fine also.
For reference, we’re running a fork of v0.4.0 amended to allow AR 2.3, plus a performance related commit which is now on master (not critical if you’re not doing heaps of traffic, but nice.)
git diff v0.4.0..7e585ecd35d3caf9b5d23a0265e709716740a3ce