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 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 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?
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
Thanks man, excelent
Glad you like it :)
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!
2 services is harder to maintain than 1 when you are alone
@@RawCoding Thanks for reply. I'll keep it simple then
What is name of the theme you ate using in the video? Looks good!
The terminal? Dracula
Is there is particular reason for using a HostedService instead of MediatorR ?
Hosted service is built in to asp core, and I haven’t used MediatR for background tasks, have you tried something like this?
@@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.
Do you have code examples?
@@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?
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
Very good
Ta