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

I recently found a good blog post introducing 2 approaches for tracking online website users using Redis.

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

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

Can you judge which one should be faster and why?

+3
source share
1 answer

, , - , .

( ), , , .

, , - ( ) , .

Redis , , , , , .

+4

Source: https://habr.com/ru/post/1527693/


All Articles