Ruby on Rails session store
programming, ruby, rubyonrails January 29th, 2006I've been building a Ruby on Rails application that is potentially going to be very large, and I need to choose an appropriate session store. Based on Scott Barron's article, I'm wavering between a Distributed Ruby (DRb) server and the ActiveRecord solution.
It looks like DRb can squeeze out a few more requests per second, but using it requires the extra maintenance of making sure one more daemon is always up. This isn't a huge problem, just one extra component to maintain. I also think DRb might get memory hungry with thousands of sessions. And, will it be faster than the DB when I need to sweep out older sessions?
For now I've decided on the ActiveRecord store as it seems a wee bit simpler, but I'll probably end up testing both. If DRb's performance is too good to pass up, I'll use it instead.
Recent Comments