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

Поділитися
Вставка

КОМЕНТАРІ •

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

  • @spicemasterii6775
    @spicemasterii6775 5 років тому +18

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

  • @UndergroundObsession
    @UndergroundObsession 6 років тому +41

    Appreciate the great content man. No one on UA-cam provides the details you do

    • @EngineerMan
      @EngineerMan  6 років тому +6

      You're welcome. Thanks for visiting :)

  • @anandloni9144
    @anandloni9144 4 роки тому

    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!

  • @ZacKoch
    @ZacKoch 6 років тому +1

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

  • @moebacca
    @moebacca 5 років тому +5

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

  • @peteallennh
    @peteallennh 3 роки тому

    Brilliant. Exactly what I needed to see!

  • @themispapavasileiou7872
    @themispapavasileiou7872 5 років тому +2

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

  • @frenchfry5675
    @frenchfry5675 4 роки тому

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

  • @intellectualgravy9796
    @intellectualgravy9796 5 років тому

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

  • @snoopdoggfanclub
    @snoopdoggfanclub 5 років тому

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

  • @sebleblan
    @sebleblan 5 років тому +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  5 років тому +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.

  • @petermoresi5275
    @petermoresi5275 5 років тому

    Would love to see a video on hll or streams.

  • @memoada5097
    @memoada5097 Рік тому

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

  • @sergiofaya7609
    @sergiofaya7609 6 років тому +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?

  • @mvato122
    @mvato122 6 років тому

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

  • @vladimir_ckau
    @vladimir_ckau 6 років тому +1

    Thank you!

  • @vanbrunt6842
    @vanbrunt6842 5 років тому

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

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

  • @abhishekshrestha_
    @abhishekshrestha_ 4 роки тому

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

  • @ZeeLegend
    @ZeeLegend 6 років тому

    Great video!! As always.

  • @alexweeda2826
    @alexweeda2826 5 років тому

    Your caption on your phone doesn’t work UA-cam

  • @davidmcdonald7506
    @davidmcdonald7506 5 років тому

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

  • @GagandeepSingh1984
    @GagandeepSingh1984 5 років тому

    quick.. thanks a ton!

  • @GrimKhazi
    @GrimKhazi 6 років тому +1

    Why did he disable comments on his craiglist scam video?

  • @cheejudo
    @cheejudo 6 років тому

    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

  • @pcrunn2862
    @pcrunn2862 6 років тому +1

    godly

  • @mishamovdivar
    @mishamovdivar 5 років тому

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

  • @danielaaviles170
    @danielaaviles170 4 роки тому

    Hi.
    I can to create a role?

  • @emersonsmithperu
    @emersonsmithperu 4 роки тому

    Redis with Apollo Server please

  • @planktonfun1
    @planktonfun1 6 років тому

    you forgot select database

  • @KTBD4SH
    @KTBD4SH 6 років тому

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

  • @mandaputtra
    @mandaputtra 6 років тому

    give queue a chance

  • @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 6 років тому +2

    Second

  • @rembursed
    @rembursed 6 років тому +2

    First.