2 approaches for tracking online users with Redis. Which one is faster?

Posted by Stanislav on Stack Overflow See other posts from Stack Overflow or by Stanislav
Published on 2010-04-15T09:14:41Z Indexed on 2010/04/16 2:43 UTC
Read the original article Hit count: 359

Filed under:
|
|

Recently I found an nice blog post presenting 2 approaches for tracking online users of a web site with the help of Redis.

1) Smart-keys and setting their expiration http://techno-weenie.net/2010/2/3/where-s-waldo-track-user-locations-with-node-js-and-redis

2) Set-s and intersects http://www.lukemelia.com/blog/archives/2010/01/17/redis-in-practice-whos-online/

Can you judge which one should be faster and why?

© Stack Overflow or respective owner

Related posts about redis

Related posts about Performance