Modern Redis in 40 Minutes | Crash Course 2023

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ก.ย. 2024

ความคิดเห็น • 85

  • @codewithantonio
    @codewithantonio ปีที่แล้ว +29

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

    • @joshtriedcoding
      @joshtriedcoding  ปีที่แล้ว +3

      Cheers man, looking forward to it!

    • @blank_bow
      @blank_bow 9 หลายเดือนก่อน +1

      Waiting for your content also

  • @DamirSecki
    @DamirSecki ปีที่แล้ว +2

    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?

  • @Tiberiumgod
    @Tiberiumgod ปีที่แล้ว

    Thanks. About JSON was interesting.

  • @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

  • @heyjitendra
    @heyjitendra ปีที่แล้ว

    Thansk for the awesome content man

  • @namhoai5282
    @namhoai5282 ปีที่แล้ว

    give your slide about redis pls

  • @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

  • @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.

  • @eydiwowers
    @eydiwowers ปีที่แล้ว

    First :))

  • @eshw23
    @eshw23 ปีที่แล้ว +15

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

  • @thedevnoteyt
    @thedevnoteyt ปีที่แล้ว +8

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

  • @tomirodriguez7195
    @tomirodriguez7195 ปีที่แล้ว +4

    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 ปีที่แล้ว +4

    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.

  • @keshavakumar9828
    @keshavakumar9828 ปีที่แล้ว +5

    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  ปีที่แล้ว +1

      Really appreciate that man. Means a lot.

  • @mohitcodeswell
    @mohitcodeswell ปีที่แล้ว +4

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

    • @joshtriedcoding
      @joshtriedcoding  ปีที่แล้ว +1

      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__ ปีที่แล้ว +1

    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

  • @wavyboyjodii
    @wavyboyjodii 9 หลายเดือนก่อน

    thanks bro

  • @rainx6995
    @rainx6995 8 หลายเดือนก่อน

    can I know the canvas tool is been used?

  • @lepa319
    @lepa319 10 หลายเดือนก่อน

    redis doesnt come with the json integration, showing us the installation of this would be helpful.

  • @schmellmafeet
    @schmellmafeet 5 หลายเดือนก่อน

    I thought Redis was for ephemeral data?

  • @pushkarkathayat7893
    @pushkarkathayat7893 7 หลายเดือนก่อน

    As nextjs already caches request, do we still need it?

  • @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?

  • @jengstrm2
    @jengstrm2 ปีที่แล้ว

    You missed the most important feature! Guess what it is…😊

  • @koustavmaity-fh3gx
    @koustavmaity-fh3gx 11 หลายเดือนก่อน

    how to use zrem using uptash redis

  • @Its-InderjeetSinghGill
    @Its-InderjeetSinghGill 7 หลายเดือนก่อน

    You did not mention TTL!

  • @aBradAbroad
    @aBradAbroad ปีที่แล้ว +1

    Another one! Thanks Josh

  • @27sosite73
    @27sosite73 9 หลายเดือนก่อน

    ty

  • @apteryx
    @apteryx ปีที่แล้ว

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

  • @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

  • @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

  • @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

  • @uttamkumbhakar2894
    @uttamkumbhakar2894 ปีที่แล้ว

    Third Comment :))

  • @sourabhsingh4515
    @sourabhsingh4515 2 หลายเดือนก่อน

    It won't be wrong if I say that Upstash sponsored Josh's whole career for now 🤣🤣

  • @MrAtomUniverse
    @MrAtomUniverse ปีที่แล้ว

    Talk about KeyDB, it has enterprise features of redis

  • @retrosynthguy
    @retrosynthguy 9 หลายเดือนก่อน

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

  • @elbezz
    @elbezz ปีที่แล้ว

    awesome!

  • @syedsadiq8591
    @syedsadiq8591 ปีที่แล้ว

    I am subscribing to this channel

  • @atejap
    @atejap 8 หลายเดือนก่อน

    You did it. tks a lot

  • @yanaytsabary8297
    @yanaytsabary8297 ปีที่แล้ว

    Great cover - thank you!

  • @ashimov1970
    @ashimov1970 ปีที่แล้ว

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

  • @fonyuyjudefomonyuy3980
    @fonyuyjudefomonyuy3980 ปีที่แล้ว

    Josh🙏🇨🇲

  • @canardeur8390
    @canardeur8390 9 หลายเดือนก่อน

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

  • @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  ปีที่แล้ว +1

      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

  • @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  ปีที่แล้ว +1

      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

  • @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

  • @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()
    ??

  • @lakshmanshankar
    @lakshmanshankar ปีที่แล้ว

    Why installing wsl may be docker is easy to setup but I m not sure how it works on windows

  • @frazuppi4897
    @frazuppi4897 ปีที่แล้ว

    redis is just soo good

  • @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

  • @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  ปีที่แล้ว +1

      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

  • @santiagograviano9064
    @santiagograviano9064 ปีที่แล้ว

    Keep it going champ, you doing it great!

  • @techs7296
    @techs7296 ปีที่แล้ว

    Likes at 18:41, 404

    • @techs7296
      @techs7296 ปีที่แล้ว

      Its pm not video timing

  • @RifkiJones
    @RifkiJones ปีที่แล้ว +1

    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

  • @greendsnow
    @greendsnow 8 หลายเดือนก่อน

    Upstash is NOT Redis! You're misleading people.

  • @mohakbajaj4235
    @mohakbajaj4235 ปีที่แล้ว

    Hey Josh! What's in your Excelifraw Library? Also, Do you use Excelidraw+?

    • @joshtriedcoding
      @joshtriedcoding  ปีที่แล้ว +1

      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"

  • @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.

  • @davidc.7688
    @davidc.7688 ปีที่แล้ว