Mastering Redis

Take your knowledge of Redis to the next level to build enthralling applications with ease
Preview in Mapt

Mastering Redis

Jeremy Nelson

Take your knowledge of Redis to the next level to build enthralling applications with ease
Mapt Subscription
FREE
$29.99/m after trial
eBook
$30.80
RRP $43.99
Save 29%
Print + eBook
$54.99
RRP $54.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$30.80
$54.99
$29.99p/m after trial
RRP $43.99
RRP $54.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Mastering Redis Book Cover
Mastering Redis
$ 43.99
$ 30.80
Build Complex Express Sites with Redis and Socket.io [Video] Book Cover
Build Complex Express Sites with Redis and Socket.io [Video]
$ 124.99
$ 106.25
Buy 2 for $35.00
Save $133.98
Add to Cart
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 

Book Details

ISBN 139781783988181
Paperback366 pages

Book Description

Redis is the most popular, open-source, key value data structure server that provides a wide range of capabilities on which multiple platforms can be be built. Its fast and flexible data structures give your existing applications an edge in the development environment.

This book is a practical guide which aims to help you deep dive into the world of Redis data structure to exploit its excellent features. We start our journey by understanding the need of Redis in brief, followed by an explanation of Advanced key management. Next, you will learn about design patterns, best practices for using Redis in DevOps environment and Docker containerization paradigm in detail. After this, you will understand the concept of scaling with Redis cluster and Redis Sentinel , followed by a through explanation of incorporating Redis with NoSQL technologies such as Elasticsearch and MongoDB. At the end of this section, you will be able to develop competent applications using these technologies. You will then explore the message queuing and task management features of Redis and will be able to implement them in your applications. Finally, you will learn how Redis can be used to build real-time data analytic dashboards, for different disparate data streams.

Table of Contents

Chapter 1: Why Redis?
Is Redis right for me?
Experimenting with Redis
Popular usage patterns
Redis isn't right because …try again soon!
Summary
Chapter 2: Advanced Key Management and Data Structures
Redis keys
Manually creating a Redis schema
Deconstructing a Redis object mapper
Big O notation
Reviewing the time complexity of Redis data structures
Sorted sets
Advanced sorted set operations
Bitstrings and bit operations
HyperLogLogs
Summary
Chapter 3: Managing RAM – Tips and Techniques for Redis Memory Management
Configuring Redis
32-bit Redis
Key expiration
LRU key evictions
Creating memory efficient Redis data structures
Hardware and network latencies
Operating system tips
Summary
Chapter 4: Programming Redis Part One – Redis Core, Clients, and Languages
Redis internals
Coroutines using Redis and Python
Summary
Chapter 5: Programming Redis Part Two – Lua Scripting, Administration, and DevOps
The use of Lua in Redis
Using KEYS and ARGV with Redis
Advanced Lua scripting with Redis
Programming Redis administration topics
Redis role in DevOps
Summary
Chapter 6: Scaling with Redis Cluster and Sentinel
Approaches to partitioning data
Clustering Redis with Twemproxy
Redis Cluster background
Overview of running Redis Cluster
Using Redis Cluster
Monitoring with Redis Sentinel
Summary
Chapter 7: Redis and Complementary NoSQL Technologies
The proliferation of NoSQL
Redis as an analytics complement to MongoDB
Redis as a preprocessor complement to ElasticSearch
Redis as a smart cache complement to Fedora Commons
Summary
Chapter 8: Docker Containers and Cloud Deployments
Linux containers
Docker basics with Redis
Layers in Docker images
Hosting and publishing Docker images
Docker and Redis issues
Packaging your application with Docker Compose
Redis and AWS
Dedicated cloud hosting options
Redis Labs
Summary
Chapter 9: Task Management and Messaging Queuing
Overview of Redis Pub/Sub
Pub/Sub RESP replies
Redis Pub/Sub in action
Redis keyspace notifications
Task management with Redis and Celery
GIS and RestMQ
Messaging with Redis technologies
Summary
Chapter 10: Measuring and Managing Information Streams
Extracting, transforming, and loading information with Redis
Machine learning and Redis
Summary

What You Will Learn

  • Choose the right Redis data structure for your problem
  • Understand Redis event-loop and implement your own custom C commands
  • Solve complex workflows with Redis server-side scripting with Lua
  • Configure your Redis instance for optimal memory management
  • Scale your data in a distributed manner with Redis Cluster
  • Improve the stability of your Redis solution using Redis Sentinel
  • Complement your existing database and NoSQL environment with Redis
  • Exploit a wide range of features provided by Redis to become a DevOps expert.

Authors

Table of Contents

Chapter 1: Why Redis?
Is Redis right for me?
Experimenting with Redis
Popular usage patterns
Redis isn't right because …try again soon!
Summary
Chapter 2: Advanced Key Management and Data Structures
Redis keys
Manually creating a Redis schema
Deconstructing a Redis object mapper
Big O notation
Reviewing the time complexity of Redis data structures
Sorted sets
Advanced sorted set operations
Bitstrings and bit operations
HyperLogLogs
Summary
Chapter 3: Managing RAM – Tips and Techniques for Redis Memory Management
Configuring Redis
32-bit Redis
Key expiration
LRU key evictions
Creating memory efficient Redis data structures
Hardware and network latencies
Operating system tips
Summary
Chapter 4: Programming Redis Part One – Redis Core, Clients, and Languages
Redis internals
Coroutines using Redis and Python
Summary
Chapter 5: Programming Redis Part Two – Lua Scripting, Administration, and DevOps
The use of Lua in Redis
Using KEYS and ARGV with Redis
Advanced Lua scripting with Redis
Programming Redis administration topics
Redis role in DevOps
Summary
Chapter 6: Scaling with Redis Cluster and Sentinel
Approaches to partitioning data
Clustering Redis with Twemproxy
Redis Cluster background
Overview of running Redis Cluster
Using Redis Cluster
Monitoring with Redis Sentinel
Summary
Chapter 7: Redis and Complementary NoSQL Technologies
The proliferation of NoSQL
Redis as an analytics complement to MongoDB
Redis as a preprocessor complement to ElasticSearch
Redis as a smart cache complement to Fedora Commons
Summary
Chapter 8: Docker Containers and Cloud Deployments
Linux containers
Docker basics with Redis
Layers in Docker images
Hosting and publishing Docker images
Docker and Redis issues
Packaging your application with Docker Compose
Redis and AWS
Dedicated cloud hosting options
Redis Labs
Summary
Chapter 9: Task Management and Messaging Queuing
Overview of Redis Pub/Sub
Pub/Sub RESP replies
Redis Pub/Sub in action
Redis keyspace notifications
Task management with Redis and Celery
GIS and RestMQ
Messaging with Redis technologies
Summary
Chapter 10: Measuring and Managing Information Streams
Extracting, transforming, and loading information with Redis
Machine learning and Redis
Summary

Book Details

ISBN 139781783988181
Paperback366 pages
Read More

Read More Reviews

Recommended for You

Mastering Docker Book Cover
Mastering Docker
$ 39.99
$ 28.00
Learning Docker Book Cover
Learning Docker
$ 39.99
$ 8.00
Python Machine Learning Book Cover
Python Machine Learning
$ 35.99
$ 25.20
Docker Cookbook Book Cover
Docker Cookbook
$ 35.99
$ 25.20
DevOps Automation Cookbook Book Cover
DevOps Automation Cookbook
$ 35.99
$ 25.20
Docker High Performance Book Cover
Docker High Performance
$ 27.99
$ 19.60