Hi guys,
After blog entry "When to use what data structure", today will discuss about other Redis fearture: transaction, scripting, pub/sub, hyperloglog. You may find some thing helpful with your system, your applicaion and more, have fun.
Transaction
+ Url: http://redis.io/commands#transactions+ Fearture: Execution of a group of commands in a single step
+ When to use: Run multi command with transaction
Scripting
+ Url: http://redis.io/commands#scripting+ Fearture: Run simple commands that will take a single exchange with the server script
+ When to use: Run faster, save bandwidth, I/O when have huge amount of request exchange between client and server
+ Document: http://oldblog.antirez.com/post/redis-and-scripting.html
Pub/Sub
+ Url: http://redis.io/commands#hyperloglog+ Data structure:
+ Fearture: quick messaging and communication between processes
+ When to use: Subcribe, follow pages in social network, or chat room, mailling list, RSS
+ Document: http://en.wikipedia.org/wiki/Publish/subscribe
HyperLogLog
+ Url: http://redis.io/commands#hyperloglog+ Algorithm: HyperLogLog
+ Fearture: Count unique value with super tiny memory usage
+ When to use: Count unique value with super tiny memory usage
+ Document: http://highscalability.com/blog/2012/4/5/big-data-counting-how-to-count-a-billion-distinct-objects-us.html
Previous blog entry: http://www.devopsa.net/2014/06/redis-when-to-use-what-data-structure-p1.html
Comments
Post a Comment