Modern Redis in 40 Minutes | Crash Course 2023

  Рет қаралды 45,442

Josh tried coding

Josh tried coding

Күн бұрын

Пікірлер: 85
@codewithantonio
@codewithantonio Жыл бұрын
Just in time I plan to build my next app with upstash! Great Content!
@joshtriedcoding
@joshtriedcoding Жыл бұрын
Cheers man, looking forward to it!
@blank_bow
@blank_bow 10 ай бұрын
Waiting for your content also
@eshw23
@eshw23 Жыл бұрын
These crash courses over fundamental topics are a blessing, helps me with my own projects
@thedevnoteyt
@thedevnoteyt Жыл бұрын
Fantastic tutorial Josh. Can you please make such crash courses on other topics like React Query, tRPC etc ?
@tomirodriguez7195
@tomirodriguez7195 Жыл бұрын
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
@kleinertraitor
@kleinertraitor Жыл бұрын
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.
@DamirSecki
@DamirSecki Жыл бұрын
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?
@keshavakumar9828
@keshavakumar9828 Жыл бұрын
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
@beloaded3736
@beloaded3736 Жыл бұрын
I think there is Stephen Griders course on Udemy that is over 9hrs long on the redis topic..
@joshtriedcoding
@joshtriedcoding Жыл бұрын
Really appreciate that man. Means a lot.
@mohitcodeswell
@mohitcodeswell Жыл бұрын
Ohhh hiii Josh, thanks for the redis course, I was making a stackoverflow clone and needed this very much !
@joshtriedcoding
@joshtriedcoding Жыл бұрын
cheers dude happy to hear that. Appreciate you commenting so regularly
@mohitcodeswell
@mohitcodeswell Жыл бұрын
@@joshtriedcoding thank you josh for noticing comments, is really took years to find a teacher (guru in India)
@emee__
@emee__ Жыл бұрын
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
@asatorftw
@asatorftw Жыл бұрын
Needs some real world examples and applications in the video. I think people use redis mostly for rate limiting and session storage? Or would anyone seriously pick redis for saving userdata over a sql db?
@lepa319
@lepa319 10 ай бұрын
redis doesnt come with the json integration, showing us the installation of this would be helpful.
@jritzeku
@jritzeku 11 ай бұрын
How would you cache a list of data like posts? In reality, wouldnt this be more practical than just a caching a single post since it would take longer to fetch. Could I just a set a dummy key like "posts" and store value there? And whenever new post is added, or existing post is edited/deleted, would have to flush
@testtest-c4z
@testtest-c4z Жыл бұрын
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
@pushkarkathayat7893
@pushkarkathayat7893 7 ай бұрын
As nextjs already caches request, do we still need it?
@jengstrm2
@jengstrm2 Жыл бұрын
You missed the most important feature! Guess what it is…😊
@schmellmafeet
@schmellmafeet 5 ай бұрын
I thought Redis was for ephemeral data?
@rainx6995
@rainx6995 8 ай бұрын
can I know the canvas tool is been used?
@gosnooky
@gosnooky Жыл бұрын
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.
@CodeWithMathias
@CodeWithMathias Жыл бұрын
i prefer to use docker instead of using virtualization in my machine it's more flexible. great video btw
@nr7343
@nr7343 Жыл бұрын
a question... In the end Redis saves everything as a strig.. So what is the difference between this and just doing JSON.stringify() ??
@siddiquiaffan
@siddiquiaffan Жыл бұрын
Wondering if it will work or not if we do something like this. redis.json.set('key', '$.tags.TypeScript', true) time: 34:06
@apteryx
@apteryx Жыл бұрын
Yooo, I literally setup upstash/redis in my project yesterday!
@MrAtomUniverse
@MrAtomUniverse Жыл бұрын
Talk about KeyDB, it has enterprise features of redis
@nr7343
@nr7343 Жыл бұрын
i like your videos, but you mix evry topic with nextjs 🙃
@theangelofspace155
@theangelofspace155 Жыл бұрын
Same feedback 😮‍💨😢. I love the content but I just wish the were more generic so I can use it in not nextjs (I prefer to use vite) but even svelte.
@sourabhsingh4515
@sourabhsingh4515 2 ай бұрын
It won't be wrong if I say that Upstash sponsored Josh's whole career for now 🤣🤣
@koustavmaity-fh3gx
@koustavmaity-fh3gx 11 ай бұрын
how to use zrem using uptash redis
@frazuppi4897
@frazuppi4897 Жыл бұрын
I think it would have been better to create the three tags under tags: etc and you then have a set or list inside the comment linking the the id of one specific tag
@mikelCold
@mikelCold Жыл бұрын
Great video, but kinda funny how you ended it by practically saying "nothing I showed you is how people normally use redis" and then just ended the video... lol
@joshtriedcoding
@joshtriedcoding Жыл бұрын
Thanks man. I think you kinda missed the point. The point of the video is to learn when to use redis and which data types for which purpose. The transfer of applying that knowledge to a database call is non-existent. You get the result and put it into redis just the same way you learn in the video. You could even argue the comment data object was a database result, just mocked
@Tiberiumgod
@Tiberiumgod Жыл бұрын
Thanks. About JSON was interesting.
@namhoai5282
@namhoai5282 Жыл бұрын
give your slide about redis pls
@retrosynthguy
@retrosynthguy 9 ай бұрын
Bro, you're the best, I freaking love u dude
@tmacka88
@tmacka88 Жыл бұрын
Great video. Any reason why you didn’t store the commentId inside the JSON object. Why did you keep them seperate?
@joshtriedcoding
@joshtriedcoding Жыл бұрын
Keeping track of all comment ids in a list makes sense to easily fetch the x latest comments. With those IDs, you can go ahead and fetch the details for each comment - because the key you store those as is defined by the commentId (e.g. comment_details:commentId). No need to keep track of it separately
@wavyboyjodii
@wavyboyjodii 10 ай бұрын
thanks bro
@jermunitz3020
@jermunitz3020 Жыл бұрын
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.
@ikhwanrizqynurzaman7579
@ikhwanrizqynurzaman7579 Жыл бұрын
True. I used it in online trading app. It's lightweight, fast, and easy to use
@canardeur8390
@canardeur8390 9 ай бұрын
Ein ganz kurzer Kurs, der doch sehr gründlich ist! Also kurz gesagt: toller Kurs!
@Its-InderjeetSinghGill
@Its-InderjeetSinghGill 7 ай бұрын
You did not mention TTL!
@RifkiJones
@RifkiJones Жыл бұрын
I know Upstash sponser you, but I'm sure many people watching are not interested in them. It feels a bit like your making this tutorial not to teach us Redis, but to plug Upstash in a video
@joshtriedcoding
@joshtriedcoding Жыл бұрын
Unfortunate you feel this way. The API is basically the same, that's why I show the whole express / any framework of your choice setup as well. It doesn't matter how you follow along, the focus is on Redis and not on the underlying provider
@syedsadiq8591
@syedsadiq8591 Жыл бұрын
I am subscribing to this channel
@lakshmanshankar
@lakshmanshankar Жыл бұрын
Why installing wsl may be docker is easy to setup but I m not sure how it works on windows
@WolfrostWasTaken
@WolfrostWasTaken Жыл бұрын
docker desktop
@hn3m3s1s
@hn3m3s1s Жыл бұрын
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.
@joshtriedcoding
@joshtriedcoding Жыл бұрын
Throughout the video and at the end I mention the role many people use it as - a cache for your mysql / postgres / mongo database. Not only does it take load off of the primary db, but also speeds up requests for frequently requested resources. Hope that helps!
@hn3m3s1s
@hn3m3s1s Жыл бұрын
@@joshtriedcoding thanks
@ashimov1970
@ashimov1970 Жыл бұрын
All concise, and right to the point. Great job, Josh. God bless
@27sosite73
@27sosite73 9 ай бұрын
ty
@aBradAbroad
@aBradAbroad Жыл бұрын
Another one! Thanks Josh
@joshtriedcoding
@joshtriedcoding Жыл бұрын
Youre welcome man. Appreciate ya
@ishansoni4326
@ishansoni4326 Жыл бұрын
But what about react-query? Is it having a similar use case?
@joshtriedcoding
@joshtriedcoding Жыл бұрын
redis and react query are two very different things
@atejap
@atejap 8 ай бұрын
You did it. tks a lot
@uttamkumbhakar2894
@uttamkumbhakar2894 Жыл бұрын
Third Comment :))
@elbezz
@elbezz Жыл бұрын
awesome!
@yanaytsabary8297
@yanaytsabary8297 Жыл бұрын
Great cover - thank you!
@fonyuyjudefomonyuy3980
@fonyuyjudefomonyuy3980 Жыл бұрын
Josh🙏🇨🇲
@santiagograviano9064
@santiagograviano9064 Жыл бұрын
Keep it going champ, you doing it great!
@joshtriedcoding
@joshtriedcoding Жыл бұрын
so are you man, cheers
@jitxhere
@jitxhere Жыл бұрын
Thansk for the awesome content man
@joshtriedcoding
@joshtriedcoding Жыл бұрын
Cheers!
@frazuppi4897
@frazuppi4897 Жыл бұрын
redis is just soo good
@joshtriedcoding
@joshtriedcoding Жыл бұрын
really like it too
@techs7296
@techs7296 Жыл бұрын
Likes at 18:41, 404
@techs7296
@techs7296 Жыл бұрын
Its pm not video timing
@eydiwowers
@eydiwowers Жыл бұрын
First :))
@joshtriedcoding
@joshtriedcoding Жыл бұрын
cheers dude haha
@greendsnow
@greendsnow 8 ай бұрын
Upstash is NOT Redis! You're misleading people.
@theangelofspace155
@theangelofspace155 Жыл бұрын
Just at 18:00 min of thr video Im loking most so far but one thing. Why use next.js to teach a new stack? Sigh nextJS already has its unique caveats l, it would have been better seen the setup in plain front/backends like a node/express backend and a vite fromt end, that way we learn how to set it up in general and then addpated to whatever framework we want to use (next, solid, svektekit, etc) show was the most pure form first 😔
@joshtriedcoding
@joshtriedcoding Жыл бұрын
Fair point. That's why I showed how to set up a locally hosted Redis in the beginning, so you can easily follow along in any other framework/language. I'd used ioredis to connect to it, but there are a bunch of clients to connect to locally hosted Redis. The API is close to the same, just wanted to also show Redis for serverless environments because not a lot of existing videos do that.
@mohakbajaj4235
@mohakbajaj4235 Жыл бұрын
Hey Josh! What's in your Excelifraw Library? Also, Do you use Excelidraw+?
@joshtriedcoding
@joshtriedcoding Жыл бұрын
Hey ddue! Not sure what you mean by library.. I just write all the stuff in there for the videos and use icons from flaticon. I don't use a paid version for excalidraw. Cheers man
@mohakbajaj4235
@mohakbajaj4235 Жыл бұрын
@@joshtriedcoding Well the top right button....
@joshtriedcoding
@joshtriedcoding Жыл бұрын
@@mohakbajaj4235 oh, it just says "no items added yet"
@davidc.7688
@davidc.7688 Жыл бұрын
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Рет қаралды 361 М.
Redis Crash Course
27:31
Web Dev Simplified
Рет қаралды 629 М.
How do Cats Eat Watermelon? 🍉
00:21
One More
Рет қаралды 11 МЛН
إخفاء الطعام سرًا تحت الطاولة للتناول لاحقًا 😏🍽️
00:28
حرف إبداعية للمنزل في 5 دقائق
Рет қаралды 38 МЛН
Every parent is like this ❤️💚💚💜💙
00:10
Like Asiya
Рет қаралды 18 МЛН
My Favorite Update in a Long Time
10:08
Josh tried coding
Рет қаралды 32 М.
This Package Saved My SaaS
5:46
Josh tried coding
Рет қаралды 124 М.
Modern Redis Crash Course: Backend with Express, TypeScript and Zod
2:17:15
Redis with Node Crash Course - Cache Data for Improved Performance
44:58
Vue.js Tutorial: Beginner to Front-End Developer
4:21:59
Envato Tuts+
Рет қаралды 345 М.
Fetching Data Doesn't Get Better Than This
6:58
Josh tried coding
Рет қаралды 120 М.
Redis Tutorial for Beginners #1 - What is Redis?
5:56
Net Ninja
Рет қаралды 91 М.
The Problem With UUIDs
6:36
Josh tried coding
Рет қаралды 74 М.
How do Cats Eat Watermelon? 🍉
00:21
One More
Рет қаралды 11 МЛН