Smarter Background Task Queue with Channels in C# WebApi

  Рет қаралды 1,396

Salih Cantekin

Salih Cantekin

Күн бұрын

In this video, we dive deep into the world of background task processing in .NET using the powerful Channels library. Learn how to build a smarter, more efficient, and robust background task queue that outperforms traditional methods.
We'll explore:
What are Channels and why are they beneficial for background tasks?
Building a task queue with Channels, step-by-step.
Handling multiple producers and consumers.
Understanding SingleWriter and SingleReader options.
Comparing Channels to other queuing mechanisms.
Practical examples and use cases.
Whether you're a beginner or an experienced .NET developer, this video will equip you with the knowledge to implement a high-performance background task queue in your applications. Don't miss out on this opportunity to level up your asynchronous programming skills!
Subscribe for more .NET development tips and tricks!
#dotnet #csharp #channels #backgroundtasks #taskqueue #async #asynchronous #programming #coding #development #tutorial #multithreading #concurrency #performance #queue #systemthreadingchannels #dotnetcore #softwaredevelopment #developer
Microsoft Doc: learn.microsof...
Stephen Toub Blog: devblogs.micro...
Stephen Toub Video: • Working with Channels ...
GitHub: github.com/sal...
Discord: / discord

Пікірлер: 12
@rainair402
@rainair402 4 күн бұрын
Came from Nicks channel here to see your video. Was not disappointed! Great work Salih. I subscribed!
@SalihCantekin
@SalihCantekin 4 күн бұрын
Welcome on board then. You won't regret :)
@smithnigelw
@smithnigelw 3 күн бұрын
I’m also here via the comment on the Channels video from Nick Chapsas. Actually I think Salih’s video is better!
@SalihCantekin
@SalihCantekin 3 күн бұрын
@smithnigelw you also welcome :) Thanks for your comment though. There'll be a lot more videos. Stay tuned
@yunuskeskin1894
@yunuskeskin1894 Ай бұрын
Thanks Mr Cantekin. I feel deeply responsibility for all of your videos, to expand your impact area, that's why I'm writing this message. There is no one that I feel same feeling 😅
@SalihCantekin
@SalihCantekin Ай бұрын
Thanks for your support. It is priceless 😊
@ahmettarksahin3777
@ahmettarksahin3777 Ай бұрын
thank you for such a clear explanation!
@SalihCantekin
@SalihCantekin Ай бұрын
I hope you enjoyed
@mucahittozal9481
@mucahittozal9481 Ай бұрын
Thats very helpful, i didn’t know that i can inject a queue into a task
@SalihCantekin
@SalihCantekin Ай бұрын
Cheers!
@thingstodowhilehave
@thingstodowhilehave Ай бұрын
I want to insert data into the database using a single writer and multiple readers approach. However, a question comes to mind: what if transactions are a requirement for me, and how can I handle cases where an error occurs during insertion or validation? How can I roll back everything in such situations? If I have only one program running, I can manage transactions globally. But here's my second question: how can I achieve this in distributed systems?
@SalihCantekin
@SalihCantekin Ай бұрын
Sorry for the late response; For the first question, the pattern you may be applying would be that IUnitOfWork pattern which helps you create a transaciton in a single point and commit or rollback within the same point. Thus, you may create the transaction and Insert your data to database by using multiple readers, then finalize your transaction. For the second question, you may have to apply something like Distributed Transaction, distributed lock mechanism might be needed to applied as well.
How To Create Generics in C#, Including New Features
38:51
IAmTimCorey
Рет қаралды 55 М.
CancellationToken in C# | How it Works
27:49
Salih Cantekin
Рет қаралды 255
Blind Boy Saved by Kind Girl ❤️
00:49
Alan Chikin Chow
Рет қаралды 50 МЛН
When my son wants to eat KFC #shorts #trending
00:46
BANKII
Рет қаралды 27 МЛН
C can do this too and it's faster than Python
2:09:48
Tsoding Daily
Рет қаралды 26 М.
How to use .NET Channels in practice?
8:48
Hubert Mijalski
Рет қаралды 2,6 М.
Found a BUG in Stephen's live DEMO
24:45
Salih Cantekin
Рет қаралды 4,8 М.
Concurrent Hosted Service in .NET 8 | .NET Conf 2023
31:12
How ILogger works in C# | Custom Rolling File Logger
30:22
Salih Cantekin
Рет қаралды 367
You DON'T want an In-Memory Event Bus like MediatR
11:20
CodeOpinion
Рет қаралды 23 М.
The Perfect Dependency - SQLite Case Study
19:32
Tom Delalande
Рет қаралды 126 М.
The Easiest Scheduling for Your .NET Applications
11:25
Nick Chapsas
Рет қаралды 77 М.
Blind Boy Saved by Kind Girl ❤️
00:49
Alan Chikin Chow
Рет қаралды 50 МЛН