From the course: Databases for Node.js Developers
Unlock this course with a free trial
Join today to access over 24,400 courses taught by industry experts.
Fast and flexible basket and session management with Redis - Node.js Tutorial
From the course: Databases for Node.js Developers
Fast and flexible basket and session management with Redis
- [Instructor] Key-value stores are a powerful and fast subset of databases. And in this chapter, we will use Redis to handle our session data along with our shopping baskets. At the core, key-value stores function like associative arrays or dictionaries in programming. Each piece of data is stored with a unique key. And the beauty of key-value stores is that they support different data types for both keys and values. So why are we using Redis? Redis is an in-memory key value store, and it only does periodic snapshots to the disc. It's known for its extreme speed with data access times often at constant times, that's an O of one notation. It's very versatile because it supports strings, lists, hashmaps, and sorted sets, and it's really ideal for ephemeral data, so data that changes often and also gets deleted very often. And this applies to sessions and also to shopping baskets. On top of this, and we won't cover this in this course, Redis also supports queue-like behavior via pops…
Contents
-
-
-
-
-
-
-
(Locked)
Fast and flexible basket and session management with Redis2m 3s
-
(Locked)
Setting up Redis with Docker1m 37s
-
(Locked)
Exploring Redis with Redis Insight2m 36s
-
(Locked)
Connecting our application to Redis4m 35s
-
(Locked)
Managing user sessions with Redis8m 50s
-
(Locked)
Basic Redis operations for shopping baskets, part 111m 16s
-
(Locked)
Basic Redis operations for shopping baskets, part 27m 47s
-
(Locked)
-
-