Redis: The Complete Developer's Guide

Master Redis v7.0 with hands-on exercises. Includes Modules, Scripting, Concurrency, and Streams!

  • 0.0 (0 Reviews)
  • 0 Students
  • 189 Lessons
  • Stephen Grider

Course Overview

In a world with hundreds of different databases, one database rises to rule them all. 

Redis is an in-memory database known for its speed and simplicity.  Originally used only for simple caching, its feature set has expanded to be one of the most versatile databases around. 

This course will teach you everything you need to know to integrate Redis into a new or existing project.

  • Get hands-on experience with commands used to add, update, and query data

  • Apply best practices and numerous design patterns by adding Redis to an E-Commerce app

  • Understand and extend the internals of Redis by using modules and scripts

  • Go beyond Redis with a deep look at fundamental concurrency issues and solutions

Data structures form the heart of Redis.  Rather than hiding functionality behind complex abstractions, Redis exposes several powerful data structures that developers use to store and query data.  Learning about these different data structures is the key to mastering Redis.  This course focuses on making sure that you understand the difference between a sorted set and a hash.  After completing this course, you'll understand when to use each structure and the benefits and drawbacks to each.  Don't have a background in algorithms or data structures?  That's OK!  Everything in this course assumes you have no prior knowledge.

Almost all top companies around the world use Redis.  Twitter, GitHub, Snapchat, Craigslist, StackOverflow - they all use Redis!  Nearly every major web product you use on a daily basis utilizes Redis behind the scenes.  And its not just large companies that use Redis - small startups do as well. 

To understand Redis, you must use Redis.  Just memorizing commands isn't enough.  You need to get your hands dirty!  With that in mind, you'll work through many exercises and quizzes.  In addition, throughout this entire course you will build a large E-Commerce application using Redis.  Don't worry - you won't need to write any frontend code.  As we learn new topics in Redis, we will add new features to our E-Commerce app.  You'll get to see why and when we use each major feature of Redis.

Built-in cheatsheets.  Many resources about Redis show running commands in a terminal window.  This approach makes it hard to remember even the most basic commands.  In this course, you'll take a different approach.  I built a standalone webapp called RBook just for you to use in this course.  This app allows you to run commands against your own Redis instance and document them at the same time, making it easy for you to refer back to your notes in the future.  Of course, you don't have to use RBook if you don't want to!

Effective learning. Everything in this course is designed to make your learning process as easy as possible.

  • At every step, I will teach you what Redis is doing internally, and help you understand how to twist and bend Redis to better suit your application's needs.

  • Every single video in the course has an attached ZIP file containing up-to-date code, just in case you ever get stuck.

  • Full-time teaching assistants are standing by to help answer your questions.

  • Access to a private live chat server is included. Live help whenever you need it!


Soooo much more.  Here's a partial of some of the things you will do in this course:

  • Write basic commands to store, update, and query data

  • Practice your skills with exercises and quizzes

  • Use almost every major feature of Redis to build an E-Commerce app

  • Enforce data constraints using sets, sorted sets, and lists

  • Understand when to use each of Redis's major data structures

  • Apply numerous design patterns to integrate Redis into an existing codebase

  • Securely deploy a Redis instance using AWS, GCP, or Azure through Redis Cloud

  • Collect stats and metrics sourced from a live API

  • Communicate between different servers using Streams

  • Master the concept of transactions to safely store data

  • Implement a standard locking algorithm to solve concurrency issues

Redis is known for being simple, but it is still hard to learn. You're given a huge toolbox with tons of features, but no clear guidance on when to use each feature.  This course aims to give you direction.  You'll understand why each feature exists, and when to use them in real apps.  You will find learning Redis a delightful experience and pick up a tremendous amount of knowledge along the way.

Sign up today and join me in mastering Redis!

See more

FAQ

FAQ area empty

Course curriculum

22 chương 189 bài học 15 giờ 30 phút 7 bài học thử miễn phí
Chương 1 Get Started Here!
Chương 2 Commands for Adding and Querying Data
  • Basic Commands Học thử 4:09
  • Documentation on Commands Học thử 5:51
  • Essentials of Commands
  • Variations of SET 5:24
  • Use Case of Expiration Options 6:55
  • Setting Multiple Keys 4:58
  • GET and MGET 0:49
  • String Ranges 3:35
  • Are These Commands Even Useful? 9:39
  • Dealing with Numbers 5:12
  • Again... Why do These Commands Exist? 8:56
  • Completed Notes
  • Using a Completed Notebook 2:15
  • Exercises
  • A Few Exercises 0:51
  • Exercise Solutions 3:20
Chương 3 E-Commerce App Setup
  • E-Commerce App Source Code Download
  • Don't Skip This Video 7:39
  • Redis Client Libraries 9:46
  • First Implementation Task 3:30
  • Redis Design Methodology 9:11
  • Key Naming Methodology 6:09
  • Adding Page Caching 6:47
  • Better Key Generation 5:02
Chương 4 Local Redis Setup
  • Installing on MacOS
  • Installing on Windows
Chương 5 Hash Data Structures
  • Hashes in Redis 2:01
  • Storing and Retrieving Hashes 4:43
  • Deleting Hash Data 2:43
  • Numbers in Hashes 4:45
  • Completed Notes
Chương 6 Redis Has Gotcha's!
  • Slightly Unpredictable HSET and HGETALL 4:08
  • Issues with HSET 6:42
  • Issues with HGETALL 6:16
Chương 7 Powerful Design Patterns
  • App Overview 9:05
  • Reducing the Design to Queries 7:20
  • What Data Type for Each Resource 6:07
  • When to use Hashes
  • Create User Implementation 10:14
  • Serialization and Deserialization 10:43
  • Adding Serialize 1:17
  • Fetching a User 3:55
  • Implementing Sessions 6:56
  • Fetching a Saved Session 7:23
  • Creating Sessions 3:22
  • Serializing Date Times 4:27
  • Storing Items 7:16
  • Fetching a Single Item 7:59
Chương 8 Pipelining Commands
  • Batching Commands with Pipelines 3:44
  • Running Multiple Commands at the Same Time 6:15
  • Executing a Pipeline 4:28
Chương 9 Enforcing Uniqueness with Sets
  • Basics of Sets 4:20
  • Union of Sets 3:26
  • Intersection of Sets 1:17
  • Difference of Sets 1:34
  • Store Variations 2:13
  • Checking for an Element in a Set 2:26
  • Scanning a Set 5:28
  • Completed Notes
  • Most Common Use Cases of Sets 6:00
Chương 10 A Little Set Implementation
  • Requiring Unique User Names 6:28
  • Adding a Like System 5:26
  • How to Count the Number of Likes? 5:31
  • Updating Like Quantities 5:10
  • Showing Liked Items 3:29
  • Showing Common Liked Items 2:13
Chương 11 Organizing Data with Sorted Sets
  • Sorted Sets 2:56
  • Adding and Removing Members 3:50
  • Finding a Range of Scores 5:22
  • Removing the Highest and Lowest Members 1:52
  • Updating Scores 2:15
  • Querying a Sorted Set 8:58
  • Completed Notes
Chương 12 Practice Time with Sorted Sets!
  • Sorted Set Use Cases 9:29
  • Reminder on the Auth Flow 5:07
  • Storing Usernames 4:11
  • Kind of Storing Strings in Sorted Sets 2:40
  • Converting User IDs 6:05
  • Plan for Showing Most Viewed Items 5:00
  • Initializing Views on Item Creation 4:43
  • Incrementing View Counters 4:20
  • Items by Ending Soonest 6:59
  • Querying for Ending Soonest 11:01
Chương 13 From Relational Data to Redis
  • Loading Relational Data 6:44
  • Relational Data with SORT 5:14
  • The Sort Command 5:41
  • Terminology Around Sort 7:59
  • Specifying the BY Argument 5:55
  • Joining Data with Sort 9:00
  • A Few More Arguments 8:38
  • Parsing SORT Output 8:14
  • Completed Notes
Chương 14 HyperLogLog Structures
  • HyperLogsLogs 4:42
  • When to use HyperLogsLogs 6:44
  • HyperLogsLogs in Action 4:32
Chương 15 Storing Collections with Lists
  • Lists 2:58
  • Reading and Writing Data to a List 3:45
  • Ranges and Searches 5:52
  • Trimming Lists 4:46
  • Removing Elements 4:54
  • List Use Cases 10:12
  • Using Lists in Our App 4:02
  • Serializing and Deserializing Bids 6:26
  • Retrieving Bid Histories 13:18
Chương 16 More Practice with the E-Commerce App
  • More on Bids 4:01
  • Validating Bids 4:43
  • Updating Items with Bids 3:26
  • Issues with Bids 4:22
  • Understanding Concurrency Issues 10:12
  • Applying Atomic Updates 7:42
  • Transactions 4:52
  • Watching a Key with Transactions 3:08
  • Isolated Connections for Transactions 3:54
  • Solving Multiple Bids with a Transaction 6:04
  • Items by Price 5:00
  • More on Items by Price 2:45
Chương 17 Extending Redis with Scripting
  • Lua Scripting 3:16
  • Basics of Lua 6:24
  • Handling Arrays 2:49
  • Handling Tables 4:12
  • Loading and Executing Scripts 4:30
  • Providing Arguments 6:21
  • Providing Key lists 6:35
  • When to Use Scripts 4:29
  • Custom Scripts with Node-Redis 4:31
  • Lua Script Integration 12:01
  • Creating a View-Incrementing Script 19:57
  • Code Cleanup 0:18
Chương 18 Understanding and Solving Concurrency Issues
  • Concurrency Revisited 7:41
  • Issues with WATCH 4:43
  • Overview of a Lock 6:01
  • Understanding the Goal 4:22
  • Implementing WithLock 10:30
  • Using WithLock 2:45
  • It Works! 2:53
  • Automatically Expiring Locks 8:06
  • Another Lock Issue 7:47
  • Solving Accidental Unlocks 3:04
  • Adding an Unlock Script 4:45
  • One Last Issue 3:46
  • Providing Expiration Signals 5:59
  • Alternate Expiration Solution 7:26
Chương 19 Querying Data with RediSearch
  • Redis Modules 2:33
  • Redis Core vs Redis Stack 2:19
  • Using Modules in Production 5:39
  • Overview on Search 3:39
  • Creating and Using an Index 6:36
  • Details on Indexes 7:32
  • Index Field Types 5:46
  • Numeric Queries 5:33
  • Tag Queries 3:07
  • Text Queries 5:12
  • Fuzzy Search 3:13
  • Prefix Search 2:07
  • Pre-Processing Search Criteria 5:23
Chương 20 Search in Action
  • Search Implementation 4:55
  • The Create Index Function 4:20
  • When to Create the Index? 5:26
  • Parsing the Search Term 6:10
  • Executing the Search 7:05
  • Seeding Some Fake Data 2:35
  • RediSearch and TF-IDF 7:17
  • Applying Weights to Fields 5:57
  • Understanding Queries with EXPLAIN 4:53
  • Query Performance with PROFILE 2:31
  • Sorting and Searching 4:25
  • Updating an Existing Index 5:28
  • Executing the Search 7:25
  • Deserializing Search Results 3:05
Chương 21 Service Communication with Streams
  • Streams 1:31
  • Use Case of Streams 6:59
  • Adding Messages to a Stream 2:36
  • Consuming Streams with XREAD 3:59
  • Blocking Reads 6:33
  • An XREAD Shortcut 1:30
  • A Little Gotcha Around Streams 4:39
  • Reading Streams with XRANGE 4:22
  • Issues with Standard Streams 2:26
  • Consumer Groups 4:50
  • Creating and Inspecting Consumer Groups 6:50
  • Consumer Groups in Action 8:30
  • Claiming Expired Messages 5:09
Chương 22 Bonus!
  • Bonus!

Requirment

  • Basic programming experience

Outcomes

  • Use Redis as an incredibly fast database for a backend application

  • Extend the functionality of Redis by using custom scripts and modules

  • Add, update, and query your data using simple and flexible commands

  • Get hands-on experience by adding Redis to a complex E-Commerce project

  • Handle concurrency issues by using powerful synchronization primitives

  • Utilize data streams to add durable communication between servers

  • Host your Redis database in AWS, GCP, or Azure using Redis Cloud

  • Analyze and balance the tradeoffs of Redis's different data structures

Instructor

...
Stephen Grider

0.0

  • ... 0 Student
  • ... 12 Courses
  • ... 0 review

View Details

Reviews

Rate this course :

Remove all