Redis in Action by Josiah L. Carlson
Redis in Action has at least 270 pages of content, about 4 times the Redis Cookbook. It was published June 28, 2013 – 2 years later than the Redis Cookbook, so it is well equipped with better content.
Dr. Josiah L Carlson is well known as an active and helpful contributor on the Redis mailing list.
He has given talks about real-world uses of Redis, including building a self-service ad network, prioritizing task queues, web spiders, a Twitter analytics platform, real-time search engines, and more.
Josiah has worked for Google and is now the VP Technology of OpenMail.
Redis is an open source, BSD licensed, advanced key-value cache and store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets, sorted sets, bitmaps and hyperloglogs.
You can run atomic operations on these types, like appending to a string; incrementing the value in a hash; pushing an element to a list; computing set intersection, union and difference; or getting the member with highest ranking in a sorted set.
Part 1 Getting started
1 Getting to know Redis
2 Anatomy of a Redis web application
Part 2 Core concepts
3 Commands in Redis
4 Keeping data safe and ensuring performance
5 Using Redis for application support
6 Application components in Redis
7 Search-based applications
8 Building a simple social network
3 Next steps
9 Reducing memory use
10 Scaling Redis
11 Scripting Redis with Lua
About The Book
As compared to the other Redis book that I reviewed earlier, this is definitely the better one.
While Part 1 chapters are meant as introduction, it has example for web application usage.
Part 2 Core Concepts are really the important chapters on how to use Redis, its data types, persistence options, replication and many more.
Part 3 of the book discusses about performance tuning such as reducing memory usage, scaling higher read and write as well as Lua scripting.
As a Redis reference book, I think Redis in Action does the job pretty well.
One thing that I think can be improved would be to add the various available options for Redis clients.
In fact, for a book published only 2 years ago, it would have helped with some revisit, especially now that Redis Cluster is available, I think an update to Part 3 of the book is warranted.