Book Image

Redis Essentials

Book Image

Redis Essentials

Overview of this book

Redis is the most popular in-memory key-value data store. It's very lightweight and its data types give it an edge over the other competitors. If you need an in-memory database or a high-performance cache system that is simple to use and highly scalable, Redis is what you need. Redis Essentials is a fast-paced guide that teaches the fundamentals on data types, explains how to manage data through commands, and shares experiences from big players in the industry. We start off by explaining the basics of Redis followed by the various data types such as Strings, hashes, lists, and more. Next, Common pitfalls for various scenarios are described, followed by solutions to ensure you do not fall into common traps. After this, major differences between client implementations in PHP, Python, and Ruby are presented. Next, you will learn how to extend Redis with Lua, get to know security techniques such as basic authorization, firewall rules, and SSL encryption, and discover how to use Twemproxy, Redis Sentinel, and Redis Cluster to scale infrastructures horizontally. At the end of this book, you will be able to utilize all the essential features of Redis to optimize your project's performance.
Table of Contents (17 chapters)
Redis Essentials
About the Authors
About the Reviewers
Clients for Your Favorite Language (Become a Redis Polyglot)


I would like to express my gratitude for my amazing and supportive partner in crime and life, Karalyn Lathrop (a.k.a. KC). She was incredibly supportive and helpful in the making of this book in so many ways that I cannot describe how thankful I am for her.

I am incredibly grateful to my son, Arthur, for being so amazingly sweet and funny. Also, thanks to him for making my life so much better, even with the long distance that keeps us far way.

There are many people I'm thankful to for the making of this book: my mom, Mauriceia, for all the love that she has given me! My aunt, Maristela, for all the support and advice; the sweetest grandmothers, Alderita and Fran Kozina; and Juliane, for being a supermom and taking care of our son when I am far way.

I give thanks to Nina Feinberg. Her help in this project was fundamental in improving the quality of the writing and consistency of this book.

Also, I would like to give special acknowledgements to the many friends and colleagues who helped me during this journey. Each one of you made a significant contribution to this project, and I am so thankful: Lincoln Clarete, Cristian Taveras, Deep Kapadia, Flavio Ribeiro, Jose Muanis, Kentaro Kaji, Michael Sarullo, Manu Menezes, Gustavo Franco, and Renata Tavares.

Finally, I give my huge thanks to Hugo Tavares for sharing this crazy experience with me. I'm honoured that he accepted my invite. Writing this book was challenging, exciting, and rewarding in so many ways. I had a lot of fun and learned a lot during the process. It's been an honour and privilege working with you.

– Maxwell Dayvson Da Silva

I would like to thank my wife, Renata, for all her support and for designing a beautiful cover for this book. This project would not have succeeded without her support. Thanks, my love!

I also thank my parents, Paulo and Maria das Graças, for always loving me, supporting my education and all my decisions, and giving me good advice on life.

I am very thankful to Karalyn Lathrop and Nina Feinberg, who reviewed this book, and the technical reviewers. They improved this book's quality a lot.

I also thank Maxwell Dayvson for inviting me to join him to write this great book. It has been an amazing experience, and I learned a lot by working with him. Thanks, my friend! I am very proud of both of us.

– Hugo Lopes Tavares