ASP.NET Core, Background Services, C# Channels - Editing Service - Tricking Library Ep18

Поділитися
Вставка
  • Опубліковано 31 жов 2024

КОМЕНТАРІ • 16

  • @jesusfranciscochinchillase7137
    @jesusfranciscochinchillase7137 4 роки тому +1

    Thanks man, excelent

  • @nullentrophy
    @nullentrophy 2 роки тому +1

    I have hard time deciding whether to use dotnet background service or another process with gRPC or similar tech to handle messaging. I need to process media then upload it to web. I want to seperate these two concerns. What should I do? I followed this tutorial and achieved what I want. But I don't know if its right/better way. Also appreciate your videos!

    • @RawCoding
      @RawCoding  2 роки тому

      2 services is harder to maintain than 1 when you are alone

    • @nullentrophy
      @nullentrophy 2 роки тому

      @@RawCoding Thanks for reply. I'll keep it simple then

  • @dhurtig77
    @dhurtig77 3 роки тому +1

    What is name of the theme you ate using in the video? Looks good!

  • @jexes2020
    @jexes2020 4 роки тому +2

    Is there is particular reason for using a HostedService instead of MediatorR ?

    • @RawCoding
      @RawCoding  4 роки тому +1

      Hosted service is built in to asp core, and I haven’t used MediatR for background tasks, have you tried something like this?

    • @jexes2020
      @jexes2020 4 роки тому +1

      @@RawCoding Yes I did it in several scenarios where I need to fire and forget some events. I think your FileManger and the video processing part is good candiate for this.

    • @RawCoding
      @RawCoding  4 роки тому +1

      Do you have code examples?

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

      @@RawCoding I don't have simple code now. But where I work I have this . The idea is executing code without being worried about the execution status like sending an email or SignalR notification if you need to notify. For your project, It would be possible to send a EditVideoMessage as Mediator Request then the viedo processing part goes in the handler. Maybe this would escale better than pooling the channel?

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

      I just wanted to know which part of MediatR you use for that. But yeah there is no polling as such and the process allows 1 video to be processed at a time.
      I’ll have to take a look at what MediatR has

  • @h.r134
    @h.r134 4 роки тому +1

    Very good