Redis Basics: Strings, Hashes, Lists, Pub/Sub

Поделиться
HTML-код
  • Опубликовано: 15 сен 2024
  • Redis is super powerful. Have a look and see the power for yourself.
    Hope you enjoyed the video!
    Check out this code here:
    github.com/eng...
    Join my Discord server to chat with me:
    / discord
    Check out some code on my GitHub:
    github.com/ebr...
    Tweet me something funny on Twitter:
    / _engineerman
    Say hi over at Facebook:
    / engineermanyt
    Sincerely,
    Engineer Man

Комментарии • 50

  • @spicemasterii6775
    @spicemasterii6775 5 лет назад +18

    Best, no BS intro to Redis. Period. Thank you.

  • @rosselliot8971
    @rosselliot8971 5 лет назад +13

    Thing about pub/sub is that it's in real time with no storage of the messages. This means that if a message is published and there are no subscribers it's like shouting into a void with no chance of retrieval. You'd need to create a mechanism by which you store published messages so new subscribers can catch up or see a history. That's pretty easy in Redis. Just use a list and push each message on as you publish it.
    Redis is great for caching any kind of data, especially rendered templates and data from API calls, especially if your API has a rate limit and the data doesn't change very often. With automatic expiry of keys Redis makes using a cache a cinch. Saves time and money.

    • @EngineerMan
      @EngineerMan  5 лет назад +1

      All valid.

    • @CreamySpoon
      @CreamySpoon 5 лет назад

      Thanks, Ross. I was wondering how to satisfy "later joiners".

  • @UndergroundObsession
    @UndergroundObsession 5 лет назад +41

    Appreciate the great content man. No one on RUclips provides the details you do

    • @EngineerMan
      @EngineerMan  5 лет назад +6

      You're welcome. Thanks for visiting :)

  • @anandloni9144
    @anandloni9144 3 года назад

    You are best teacher I would say !!! In 15 mins you have covered lot of things which would help any newbie to understand what Radis is.. Appreciate your work and effort for making this.

  • @darshantank554
    @darshantank554 2 года назад +1

    Finally, I found something helpful
    Thank

  • @biuronemo566
    @biuronemo566 5 лет назад +1

    Great informative video. Thank you! Please provide more content on Redis.

  • @JayDiHuman
    @JayDiHuman 4 года назад +1

    Great video! Quick and comprehensive. Thank you!

  • @moebacca
    @moebacca 5 лет назад +5

    Great videos man! I just subbed, keep up the pubs.. har har..

  • @ZacKoch
    @ZacKoch 5 лет назад +1

    Nice video, wanted a primer on redis actually, so thank you.

  • @peteallennh
    @peteallennh 3 года назад

    Brilliant. Exactly what I needed to see!

  • @themispapavasileiou7872
    @themispapavasileiou7872 4 года назад +2

    are you the best? I think you're the best!

  • @snoopdoggfanclub
    @snoopdoggfanclub 5 лет назад

    wow.. can't wait to start scaling with redis!

  • @intellectualgravy9796
    @intellectualgravy9796 5 лет назад

    Thanks man. You remind me of Tanto in 13 hours the secret soldiers of Benghazi.

  • @vladimir_ckau
    @vladimir_ckau 5 лет назад +1

    Thank you!

  • @frenchfry5675
    @frenchfry5675 4 года назад

    If you are on windows 10 you can use the wsl and build the sources, pretty simple.

  • @sebastienleblanc5217
    @sebastienleblanc5217 4 года назад +1

    I don't understand the advantages of a DB in memory. If I'm using python can't I do all of this with dictionaries and list methods? Is it because multiple processes can have access to it at the same time? Thanks!

    • @EngineerMan
      @EngineerMan  4 года назад +1

      You hit on one reason to use Redis: sharing data between processes. The other reason is persistence. Using a Python list or dictionary is available only as long as the process is running.

  • @pcrunn2862
    @pcrunn2862 5 лет назад +1

    godly

  • @GagandeepSingh1984
    @GagandeepSingh1984 5 лет назад

    quick.. thanks a ton!

  • @ZeeLegend
    @ZeeLegend 5 лет назад

    Great video!! As always.

  • @petermoresi5275
    @petermoresi5275 5 лет назад

    Would love to see a video on hll or streams.

  • @memoadam5097
    @memoadam5097 Год назад

    what's the limit for the published message in term of size?

  • @vanbrunt6842
    @vanbrunt6842 5 лет назад

    This is great! Can you do a video on Firebase?

  • @mvato122
    @mvato122 5 лет назад

    Will you be doing advanced or intermediate in depth node js videos?

  • @sergiofaya7609
    @sergiofaya7609 5 лет назад +1

    Which redis service would you use to store user web tokens on a web service? I have looked at AWS solutions but I dont know if they are suitable for the job.

  • @chiragsaini2314
    @chiragsaini2314 3 года назад

    I have doubt engineer man , could i learn redis without having understanding of any other database?

  • @abhishekshrestha_
    @abhishekshrestha_ 4 года назад

    can we get a list of keys by matching patterns in values and not keys?

  • @love-hammer
    @love-hammer 5 лет назад

    How does redis as a message broker compare to, say, RabbitMQ when creating your messaging service architecture? What made you choose one over the other?

    • @lmind2
      @lmind2 5 лет назад

      stackoverflow has a decent write-up about this question:
      stackoverflow.com/questions/25133260/redis-as-a-message-broker
      Redis is single-threaded and runs out of RAM since the use case is for extremely fast low-latency key value processing. RabbitMQ can utilize more than one thread, but, depending on use case and work flow, usually takes longer to process the same request.

  • @cheejudo
    @cheejudo 5 лет назад

    I watched your video about the craigslist scammer. I would have replied there but the comments are locked. That trick were you pasted a list into a hard coded array was awesome... Can you teach me how to do this in C#, c++ or Java

  • @davidmcdonald7506
    @davidmcdonald7506 5 лет назад

    `pubsub channels` will give you a list of your active channels for those looking

  • @GrimKhazi
    @GrimKhazi 5 лет назад +1

    Why did he disable comments on his craiglist scam video?

  • @alexweeda2826
    @alexweeda2826 5 лет назад

    Your caption on your phone doesn’t work RUclips

  • @mishamovdivar
    @mishamovdivar 5 лет назад

    dude, why do you have knife in your hand, it's scary

  • @KTBD4SH
    @KTBD4SH 5 лет назад

    If only UDP was enabled by default and k was able to get all values with a some command :c

  • @emersonsmithperu
    @emersonsmithperu 4 года назад

    Redis with Apollo Server please

  • @danielaaviles170
    @danielaaviles170 4 года назад

    Hi.
    I can to create a role?

  • @mandaputtra
    @mandaputtra 5 лет назад

    give queue a chance

  • @planktonfun1
    @planktonfun1 5 лет назад

    you forgot select database

  • @nikhildivakar3918
    @nikhildivakar3918 5 лет назад

    Why are you not using tmux?

    • @EngineerMan
      @EngineerMan  5 лет назад

      For what?

    • @nikhildivakar3918
      @nikhildivakar3918 5 лет назад

      Woah..i didn't think you would reply..first of all..great fan of your videos :)
      Answer for the question: to open multiple shells in a terminal window and easily manage it compared to tiling

  • @johnkoodarathilvarkey4179
    @johnkoodarathilvarkey4179 5 лет назад +2

    Second

  • @rembursed
    @rembursed 5 лет назад +2

    First.