Redis Streams Explained

Поделиться
HTML-код
  • Опубликовано: 28 дек 2024

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

  • @2005kpboy
    @2005kpboy 3 года назад +18

    Redis is awesome...
    Cache
    In-memory DB with persistence
    Message broker
    Plain awesome.

  • @fuzzyindian7097
    @fuzzyindian7097 11 месяцев назад

    Hi @Redis Team!
    Suppose A redis stream with "stream_key1" is published in one services "A" and there is another service "B" which is the consumer, but service B have three instances, and same message will be consumed by all three instance, how to avoid the processing duplicacy in this scenario, If i go with using consumer Id then it will leads to creating 'n' consumer Ids and we can't track on it.

  • @Stanoweb
    @Stanoweb 2 года назад +2

    Hi,
    Is it better to use XTrim ou XDel for removing "processed" streams?

    • @Redisinc
      @Redisinc  Год назад +3

      Hello! XDEL is great for removing specific entries by ID. It's also O(1), so it's very fast. XTRIM is good for removing entries that are older than a specified entry, so it's good for removing an amount of entries where you might know all of the specific ids. It's also O(N) with N being the number of entries to evict. Basically, if you have specific IDs to remove, use XDEL. If you have a large group of entries to remove based on entry age, use XTRIM.

  • @TheFallenMEL
    @TheFallenMEL 3 года назад +1

    is XTRIM free up memory?
    on XDEL when all messages are marked deleted then will it free memory?

  • @reddot8100
    @reddot8100 3 года назад +7

    Wow, streams very interesting 👍💪

  • @101graffhead
    @101graffhead 2 года назад +1

    This seems very useful, but i am a little confused doesn't blpush/blpop achieve same thing to some extent, blpop keeps blocking until new data arrives, but this seems to have buffer too like kafka*

    • @Redisinc
      @Redisinc  Год назад +4

      Hey there! We actually talked about this question on our show This Week on Discord (and now RUclips!) - you can find that discussion here - ruclips.net/video/Vn9LDdyjMsQ/видео.html - but tldr; different use cases! Streams allow processing by multiple resources simultaneously without popping / removing any data so it can be processed by multiple different consumers.

    • @101graffhead
      @101graffhead Год назад +1

      @@Redisinc thanks

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

    simply superb... how to use redis as message broker

  • @abirpaul9027
    @abirpaul9027 Год назад +3

    Hi Redis team!
    Can you cover some more examples in real life which data structure to use for which situation like if 2 data structures accomodate 2 scenarios

    • @Redisinc
      @Redisinc  Год назад +1

      Great idea! We'll look into creating some examples in the future! - Justin

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

    compared to redis timeseries??

  • @eitannakash
    @eitannakash Год назад +2

    I wonder what is the best way to mix stream with pubsub. my use case: consume published expired event into stream? or what would be the best way to use ttl of entreis to triger job with the expired entrey value/key

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

      This is a great question! I would recommend visiting our Discord server to chat with the experts: discord.gg/redis

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

    I don't understand, is Redis trying to replace Kafka?

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

      Redis has had Streams for quite a few versions.

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

    As usual fantastic..!!

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

      Thank you so much 😀

  • @cryptolicious3738
    @cryptolicious3738 2 года назад

    sweet, cant wait to try this tomorrow

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

    Awesome explanation !

    • @Redisinc
      @Redisinc  2 года назад

      Thanks, Allison! Let us know if you ever want us to cover something specific! - Justin

  • @zeppelin0110
    @zeppelin0110 2 года назад

    Based

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

    Braun strawman left wwe 😀

    • @justincastilla3082
      @justincastilla3082 2 года назад

      LMAO I'll take that with the highest of praise! Thanks! - Justin