Channels with ASP.NET Core Web API for easy pub/sub implementation

preview_player
Показать описание
I will explain how to use the Channel class with ASP.NET Core Web API in this video.

00:00 - Introduction
00:30 - The Application that will use Channel
01:10 - Channel subscriber class
04:05 - Channel publisher in Web API Controller
05:00 - Dependency injection
06:20 - Testing the Web API
07:00 - Multiple publishers/producers in Web API
07:50 - Web API asynchronous process demonstration
09:35 - How does having multiple subscribers/consumer impacts

#csharp #csharp11 #dotnet7 #dotnet7

Some of my popular videos:

Рекомендации по теме
Комментарии
Автор

What if one of the background services takes a longer time to process the message (say 3 times the other) within that time, wont the other background service process more items in the channel?

chidii
Автор

why are you using Task.Factory.StartNew in StartAsync method in hosted service ?

leknyzma