Publish Subscribe Messaging In .NET With Redis Channels

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

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

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

    Want to master Clean Architecture? Go here: bit.ly/3PupkOJ
    Want to unlock Modular Monoliths? Go here: bit.ly/3SXlzSt

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

    Thank u .I started learning Reddis database.. for each usecase of reddis I found ur demo thanks for sharing your knowledge

  • @amjad-se
    @amjad-se 8 месяцев назад

    Thanks for this simple and straighforward explanation. I noticed that Redis Channels are a better solution than Rabbit MQ in smaller companies that don't have a solid infrastructure.

  • @sekarcse
    @sekarcse 10 месяцев назад

    Great job, Milan! Your explanation was clear and concise.

  • @apurvsingh1985
    @apurvsingh1985 10 месяцев назад

    Great content brother.. I need to implement a redis pub-sub at work and i do not have that experience. I am gonna use this video as my reference to get started!!

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

    thank you! very useful information

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

    Thanks for the content

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

    Thank you somuch bro

  • @LilPozzer
    @LilPozzer 4 месяца назад

    that's actually great!

    • @MilanJovanovicTech
      @MilanJovanovicTech  4 месяца назад

      The use cases are somewhat limited, but it's interesting

  • @hookmetamethod
    @hookmetamethod 10 месяцев назад +1

    thank you!

  •  Год назад +1

    0:46 - "these are the logs coming from the subscriber and these are the logs coming from the publisher"
    We don't see your cursor in the video. I assume the left window is the publisher and the right window is the subscriber.
    0:58 - "[...] using rediSH channels. If you are not familiar with rediS, [...]"
    This is nitpicking, but what is the correct pronunciation? Is it both okay?

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

    thanks, do you use much about MassTransit? for Azure service bus

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

      I have a blog with the .NET SDK: www.milanjovanovic.tech/blog/messaging-made-easy-with-azure-service-bus

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

      @@MilanJovanovicTech thank you

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

    I am surprised I am so unsed to Javascript I noticed the use of Visual Studio but it was off some how not to see vscode... it took me a few minutes before realizing it was C# LoL

  • @ClAddict
    @ClAddict 4 месяца назад

    Would like to see how this could be used in a distributed system with multiple subscribers to balance load but with each message being processed at most once. In your example with two subscribers each message was getting processed twice.
    I’m in a system where I don’t control the publisher, but would like to have more than one subscriber to balance the load of processing the data, but don’t want to waste compute by processing each message more than once.

    • @MilanJovanovicTech
      @MilanJovanovicTech  4 месяца назад

      That's how this works - all subscribers will handle the message. You could implement a central idempotency store to check if the message was already processed or not.

    • @ClAddict
      @ClAddict 4 месяца назад

      @@MilanJovanovicTech That is what I’m saying I’d like to see.

  • @chuannguyen1686
    @chuannguyen1686 5 месяцев назад

    I'm here =))

  • @Sultan-es6vi
    @Sultan-es6vi Год назад +1

    Would you consider using redis as a message broker in production? Or does it have some obvious cons compared to rabbitmq, or azure service bus?

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

      Not a good for a "real" message broker. It can be used if you can allow message loss, which is not acceptable for a proper message broker usage.

  • @ThiNguyen-bm5ln
    @ThiNguyen-bm5ln 7 месяцев назад

    Hi Milan, Thanks for the great video. I have a question though. What will happen if the publisher published the messages but the subscribing applications only run a day after? Where will the messages be stored and is it possible to get all the messages at once?

    • @MilanJovanovicTech
      @MilanJovanovicTech  7 месяцев назад

      The messages will be lost. Redis doesn't persist the messages.

    • @TheScriptPunk
      @TheScriptPunk 7 месяцев назад

      You could have an api service that sends the messages to redis and to another resource to persist.
      I'm not sure what an easy to use persistence mechanism would be, and I thought redist might have queues

    • @ThiNguyen-bm5ln
      @ThiNguyen-bm5ln 7 месяцев назад

      ​@@TheScriptPunk The thing is I'm looking for a service that can avoid using an API endpoint to subscribe to/store messages. As I think what would be the point of using a notification service but then you still have to create APIs for storing the messages. Wouldn't it be easier to just create a message using an API endpoint than going through many setup for Redis or any other service like AWS SNS/SQS? I don't have any issue with that approach but my manager would definitely argue like that. He wanted me to design the whole notification system for our desktop app and I'm stuck... :((

    • @TheScriptPunk
      @TheScriptPunk 7 месяцев назад

      @@ThiNguyen-bm5ln I think redis offers a feature that fits what your needs are

    • @TheScriptPunk
      @TheScriptPunk 7 месяцев назад

      @@ThiNguyen-bm5ln you can use event queues or whatever they're called.
      Leverage both the channel and use the queue to catch up or something.

  • @Paul-uo9sv
    @Paul-uo9sv Месяц назад

    can we publish binary images with json to redis channels? Great vids by the way, I watch your channel and I'm a huge fan.... thanks!

    • @MilanJovanovicTech
      @MilanJovanovicTech  Месяц назад +1

      I never tried it 😁 The theoretical max message size is ~20MB from what I can find

    • @Paul-uo9sv
      @Paul-uo9sv Месяц назад

      @@MilanJovanovicTech thanks

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

    Is it possible to publish message without getting subscriber so that it can be broadcasted to everyone?

  •  Год назад +2

    Lava lamp ♥

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

    Hi milan, can u do video on dapr pub sub

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

    I have erros : Severity Code Description Project File Line Suppression State Details
    Error CS0618 'RedisChannel.implicit operator RedisChannel(string)' is obsolete: 'It is preferable to explicitly specify a PatternMode, or use the Literal/Pattern methods' Application.How to fix it

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