Introduction to Redis Data Structures

New to Redis? Learn all about Redis’s core data structures, and see how to apply them in the real world.

Register for this course
This course is self-paced. You can access all of the course materials at any time. You'll need to complete all homework and the final exam by the end date, but you're free to do so at your own pace.

What you’ll learn

RU101 is an introductory course, perfect for developers new to Redis.

In this course, you’ll learn about the data structures in Redis, and you’ll see how to practically apply them in the real world.

The course covers all of Redis’s most-used data structures, including strings, hashes, lists, sets, and sorted sets.

Since Redis is often used for high-throughput, low-latency applications, we’ll be sure to cover the time-complexity of the various Redis commands so that you can select the right data structures to solve your domain problem.

You’ll also learn about specialized Redis data structures such as geospatial indexes and bit fields. And you’ll see how to model capped collections, perform set operations, and take advantage of Redis pub/sub.

Finally, you’ll get an introduction to Redis’s powerful Lua scripting capabilities.

What you’ll build

To make the material interesting and practical, the course examples model a system for hosting the Redis Games, a worldwide sporting event! You’ll use the Redis CLI to interact with the data models, and coded solutions will be provided in Python.

Course Outline

Week 1Week 2Week 3
  • Course Introduction
  • Data Structures
    • Keys & Expiration
    • Strings
    • Hashes
    • Lists
    • Sets
    • Sorted Sets
  • Capped Collections & Set Operations
  • Use Case: Faceted Search
    • Object Inspection
    • Set Intersection
    • Hashing & Compound Keys
  • Performance & Big-O Notation
  • Transactions
    • Basic Transactions
    • Optimistic Concurrency Control
  • Object Storage
    • Simple Objects
    • Nesting, Relationships & Folding
  • Use Case: Inventory Control
    • Overview
    • Reservations
    • Expiration of Reservations
Week 4Week 5Week 6
  • Bitfields Use Case: Seat Reservations
  • Domain Problem: Creating Seat Maps, Checking Availability
  • Publish / Subscribe Use Case: Fan out Syndication of Events Filtered Events
  • Geospatial Use Case: Finding Venues
  • Lua Scripting Use Case: Inventory Control with Lua
  • Managing and Executing Scripts
  • Purchase Workflow Reserving Tickets
Final Exam


  • Web Browser: Firefox 39.0+ or Chrome 43+ (Internet Explorer is currently not supported)
  • Operating System: Mac OS X 10.7+ 64-bit, Ubuntu 14.04+ 64-bit, or Windows 8+ (64-bit)
  • Access to and (i.e. non-blocked access)

Course Instructors

Alvin Richards

Alvin is Chief Product Officer at Redis Labs, and has held various executive roles, most recently as the Field Chief Technology Officer at MariaDB, Vice President of Product at Aerospike and engineering lead at MongoDB. He has worked with SaaS startups, enterprise storage (NetApp) and byte-code virtualization and containers (Docker). Alvin’s early experience as a software engineer at Oracle provided a springboard for his career success building and leading engineering teams across the globe.

Alvin holds a computer science degree from Thames Valley University and a Bachelor of Arts in photography from Nottingham Trent University, both in Great Britain.

Kyle Banker

Kyle Banker is Director of Developer Education at Redis Labs. He’s worked extensively in data engineering, is enthusiastic about data stores and distributed systems, and is passionate about explaining technology as clearly as possible.

Kyle holds dual degrees in English literature and philosophy.