On Fri, Apr 23, 2010 at 4:10 AM, surfman <
chinas...@gmail.com> wrote:
> Any body knows if Redis is suitable for cms,forums etc web app(no
> video/audio/pics stored required)? Thanks.
Simple question, non simple answer.
The short question is: yes. But the longer one has different points:
- Yes it's fast and I saw tons of forums not able to handle users for
speed concerns
- Redis it's not good for searches itself. You *can* build specialized
searches with it, but for a standard CMS probably you want something
build to do searches.
- If your documents are a lot, it's a good idea to take metadata
inside Redis, and messages inside an SQL server. Also to use Redis VM
can be a good option.
- With sorted sets you can model a lot of forum-alike problems with
very good performances.
- You'll be able to collect stats with INCR with good performances and
simplicity
- You can use EXPIRE to create a forum where it's simple to understand
if a given user is "online". Just every time you see an user do a SET
+ EXPIRE 60, then perform a GET every time you want to check if a
given ID is online.
Cheers,
Salvatore
--
Salvatore 'antirez' Sanfilippo
http://invece.org
"Once you have something that grows faster than education grows,
you’re always going to get a pop culture.", Alan Kay