Mastering Redis

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

Mastering Redis

This ebook is included in a Mapt subscription
Jeremy Nelson

Take your knowledge of Redis to the next level to build enthralling applications with ease
$43.99
$54.99
RRP $43.99
RRP $54.99
eBook
Print + eBook
Subscribe and access every Packt eBook & Video.
 
  • 4,000+ eBooks & Videos
  • 40+ New titles a month
  • 1 Free eBook/Video to keep every month
Find out moreStart Free Trial
 
Preview in Mapt

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