Using Channel class for pub/sub design in C# (System.Threading.Channels)

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

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

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

    So that Channel class was introduced for supporting the pattern producer consumer between an ApDomain/process threads?

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

    Can we use it in the reader as a separate application and the writer as a separate application?

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

    When to use Channel and what projects perfect for this?

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

      In my experience this can be used instead of an in-memory queue. So for example, where you want to queue multiple requests and have them gets processed by one or multiple processors and keep the producers decoupled from the processors/consumers.

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

    It can be used as the mediator