Brian's Waste of Time

Fri, 10 Dec 2004

Rails Session Clustering *sigh*

So, one of the drawbacks to using scripty languages for web apps is clustering, right? Here is a clustered session store for RoR:

require 'drb'

DRb.start_service("druby://#{HOSTNAME}:9192", Hash.new)
DRb.thread.join

Of course that is just the DRb store, there are a bunch of other options, and a nice look at their performance characteristics by Scott Barron =)

1 writebacks [/src/ruby] permanent link