Redis Streams Explained

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

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

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

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

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

    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.

  • @TheFallenMEL
    @TheFallenMEL 2 года назад +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 👍💪

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

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

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

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

    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

  • @101graffhead
    @101graffhead Год назад +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

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

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

    compared to redis timeseries??

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

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

    As usual fantastic..!!

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

      Thank you so much 😀

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

    Based

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

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

    Braun strawman left wwe 😀

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

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

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

    Streams is an important topic, but that beard is a distraction 😂😂😂

    • @Redisinc
      @Redisinc  3 года назад +11

      Sometimes it gets stuck in my RedisGears :) - Justin

    • @brbbst
      @brbbst 6 месяцев назад

      I didn’t even noticed , I thought its the shadow or a shadow.😅