Archive

Posts Tagged ‘Fred Oliveira’

Redis Cookbook by Tiago Macedo, Fred Oliveira

July 20th, 2015

redis_cookbook  What is Redis?

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.

So say it’s official website: http://redis.io/

I would call it an ‘in-memory/cache database” software.

While researching the available options for in-memory database, Redis seems to be the most popular, although not the newest.

This book has been published since August 6, 2011 and now in July 2015 there is no 2nd edition or any revisit of its 1st edition yet.

The Authors

Tiago Macedo is an Infrastructure Lead at 3scale Networks (http://www.3scale.net/) and has been working with Redis for more than a year. Macedo uses Redis as a high-performance storage engine for analytics data and used it as a temporary cache for contact syncing while working at Soocial (http://www.soocial.com/).

Fred Oliveira is an entrepreneur and designer. After living in Silicon Valley to work with Techcrunch and Edgeio, Fred started Webreakstuff (a design, development and strategy consultancy) to provide services to companies and individuals. Fred is co-founder of the Web 2.0 Workgroup with Michael Arrington of Techcrunch and Richard MacManus of Read/WriteWeb and a 2005 Google Summer of Code alumni. He is an early technology adopter and frequently blogs and speaks at conferences about technology, the role of design, and innovation.

 

Chapters

1. An Introduction to Redis
When to use Redis
Installing Redis
Using Redis Data Types
2. Clients
Using Redis from the Command Line
Using Redis from Python with redis-py
Using Redis from Ruby with redis-rb
Using Redis with Ruby on Rails
3. Leveraging Redis
Using Redis as a Key/Value Store
Inspecting Your Data
Implementing OAuth on Top of Redis
Using Redis’s Pub/Sub Functionality to Create a Chat System
Implementing an Inverted-Index Text Search with Redis
Analytics and Time-Based Data
Implementing a Job Queue with Redis
Extending Redis
4. Redis Administration and Maintenance
Configuring Persistence
Starting a Redis Slave
Handling a Dataset Larger Than Memory
Upgrading Redis
Backing up Redis
Sharding Redis

 

About The Book

Redis Cookbook is one of the earliest book for Redis and with only about 54 pages of content, one does not need to have much expectation from it.

In fact, Redis is popular because it is easy to use and as a caching tool, there simply isn’t much else it is supposed to do other than being able to cache fast, scales, and persistent. The official website does cover most of it with manuals and documentation.

However, if browsing the website still does not give you a better idea, then this book is essentially what you will need.

It explains in simple terms all the basic use-cases in four main chapters and it is able to lay down those use-cases which I think are most likely used.

There are now many Redis clients available but this book only covers the command line client, Python, Ruby and Ruby on Rails in summary mode. Of course it doesn’t make sense to cover all the clients in the book while they are being added, but this goes to show how dated this book is.

Conclusion

I think this book can pass as “another Redis book I have” if you need one simply as the most basic book of Redis in summary.

I cannot deny however, that the use cases are really beneficial to understand why such features are there instead of just knowing how to use it or getting it done.

Books, Review, Software , , ,