RSS
28 May 2007

Connection Pooling with Ruby on Rails Enterprise Edition

Author: ceefour | Filed under: Enterprise, Friends, News, Opinions, Plugins, Praises, Rails, Tips

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

Some people lucky enough to be in a large corporate requiring enterprise-quality software with redundant databases will love this: Magic Multi Connections by the genius Dr Nic. (fanfare please!)

The problem is simple:

  • How to connect a Rails app to more than one database.

The answer solution is also simple:

  • [almost] 75-line Rails plugin (+ gem) called Magic Multi Connections.

Dr Nic Williams himself wrote a very interesting Magic Multi Connections tutorial. And DHH suggested that Twitter should probably use it.

Connection pooling and database clustering is a relatively complicated subject. But I’d say this plugin solves about 80% of the problem in 2% of the code. ;-)

Note: Sorry, you’re right, there’s no such things as “Rails, Enterprise Edition”… As Shakespeare once wrote: “What’s in a name?”

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

blog comments powered by Disqus