Hacker News new | past | comments | ask | show | jobs | submit login
Poll: For session data: Redis, Memcached, or other?
6 points by nathanwdavis on April 5, 2011 | hide | past | favorite | 2 comments
I'm curious what other engineers are using for user session state storage/tracking within their web apps. I'm not asking about general cache storage, this is specifically about what you use for user session data (if you do that at all).

I'm also interested in hearing what techniques others use for fail-over and to increase availability.

EDIT: added choice 'An RDBMS'

Redis
9 points
memcached (from Danga Interactive)
4 points
An RDBMS
3 points
In-process memory
2 points
Other
2 points
Membase
0 points
Riak
0 points



I use Rails' standard cookie sessions. There's never much data in the session, and it's encrypted so there aren't really security concerns. Not having to bother with flushing expired sessions or having to wipe out all my users' sessions because memcached needed a restart is nice.


If memcached, what do you do to make sure sessions aren't lost. On their FAQ (http://code.google.com/p/memcached/wiki/HowToSessions) it sounds like it is not intended to be used for sessions. Thoughts?




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: