Modern Redis in 40 Minutes | Crash Course 2023

preview_player
Показать описание
Master modern Redis with a project-based learning approach. We'll explore the most relevant & used data types and set up both a serverful and serverless Redis instance as our Redis playground. You'll learn performance optimizations and later also learn to keep your database requests at a minimum using Redis JSON.

-- my links

-- timestamps
0:00 What you'll learn
0:59 What can Redis do for you?
2:40 Task - can you figure out the ideal data types?
4:25 Our project structure
5:08 Redis for serverful environments
7:22 Redis for serverless environments
9:02 Setting up our Redis playground project
14:17 Connecting to Redis
16:48 Lists
18:48 Sets
23:08 Hashes
26:32 Fetching comments on the frontend
28:56 Performance optimizations
31:02 Redis JSON
Рекомендации по теме
Комментарии
Автор

These crash courses over fundamental topics are a blessing, helps me with my own projects

eshw
Автор

Just in time I plan to build my next app with upstash! Great Content!

codewithantonio
Автор

For the past 2 weeks I been learning redis through docs and now you droped this gem 💎
You are the most consistent youtuber with such high quality content. Thank you for this tutorial
I wish this was 4-5+ hr long

keshavakumar
Автор

Fantastic tutorial Josh. Can you please make such crash courses on other topics like React Query, tRPC etc ?

thedevnoteyt
Автор

Ohhh hiii Josh, thanks for the redis course, I was making a stackoverflow clone and needed this very much !

mohitcodeswell
Автор

Great video!
I'd be interested in a follow up for using redis as a cache and then syncing it with a real MySQL database.

kleinertraitor
Автор

Ein ganz kurzer Kurs, der doch sehr gründlich ist!
Also kurz gesagt: toller Kurs!

canardeur
Автор

Josh, thanks for the video... can you please explain in the next video... how can we use this in production?
and how can we sync the redis with our sql or mongo db?

DamirSecki
Автор

I think it would have been better to create the three tags under tags:<tag_1_id> etc and you then have a set or list inside the comment linking the the id of one specific tag

frazuppi
Автор

Excelent video Josh!
I was wondering in which cases would you use redis instead of an actual database? Since the latest is way more powerfull and cheep, is there some edge cases where using redis would be better?
I can't stop comparing the 10k comments / day from upstash against the 1billon read from Planetscale 🤔

Thanks for all the content :) It really helps a lot

tomirodriguez
Автор

All concise, and right to the point. Great job, Josh. God bless

ashimov
Автор

Really nice video on a interesting topic!

In the introduction you say you would explain 'when' to use redis but I'm not sure I got it. Would have been great to explain when to use redis over SQL for example.

hnmss
Автор

Bro, you're the best, I freaking love u dude

retrosynthguy
Автор

Another important key type is Streams. I find it useful for multiplayer games and chat apps were the data needs to be streamed in and updates subscribed to. It's like a little Kafka.

jermunitz
Автор

Bro, can you make a tutorial on migrating express server to next js or at the very least use express server together with next js, I would greatly appreciate

emee__
Автор

Very good video, I congratulate you. I ask you a question, suppose I have an application with a mysql database, my app calls an api to query and show products to the user, if I implement you Redis to cache the busquedaby that the api first see if you have stored in cache and if not just then go to query the database, with the first user who enters the app Eedis stored in the server cache and then if another user comes and asks to see the products would be set in that cache even if they are different users? The cache has a time and then it is deleted and the search to the database is done again, right? Thank you very much

testtest-cz
Автор

What would the performance benefits be to using Redis JSON to just store, say, a cached API response as opposed to just stringifying/parsing the standard Redis string response? The JSON has to be marshaled anyways by ioredis. My current use cases don't involve granular edits to nested data. I just store and retrieve the whole thing.

gosnooky
Автор

Yooo, I literally setup upstash/redis in my project yesterday!

apteryx
Автор

i prefer to use docker instead of using virtualization in my machine it's more flexible. great video btw

CodeWithMathias
Автор

Keep it going champ, you doing it great!

santiagograviano