Synchronise using Queues or Semaphores?
Вставка
- Опубліковано 5 гру 2023
- Never used Queue's for synchronisation? would you like to know when to use one over a Semaphore?
Support my Work 🤝 / raw_coding
Buy my Courses 📚 learning.raw-coding.dev
Buy my Merch 🛒 shop.raw-coding.dev
Join the Community 💬 / discord
Tweet Tweet 📣 / anton_t0shik
Tune in LIVE! 🎥 / raw_coding
#csharp #asynchronous #synchronization
And... 25+ years later, we're right back around to semaphores.
You nailed the question though! I recently read about the term "Temporal coupling", I think that's a fantastic metaphor that applies here. If you don't use the awaitable message TCS shortcut, you essentially either fire and forget the message from your producer and put the message to the consumer, causing pressure on consumer side, or you suspend the execution flow on producer side and cause producer pressure, piling the processing on that side. Either you get temporal coupling according to the logical control flow, or you omit it.
yoooh, bro you've got mad knowledge on these topics
Simply awesome, love your channel :D
I was disappointed that you did not discuss synchronization using distributed queues! It is a topic that I am really looking for to see you discuss. However, all-in-all great and informative video, kudos!
Noted, ill make something on it )
What the hell is that example setting haha, I love it!
Very nice demo and explanation! As a patreon subscriber, I couldn't find the source code.
That's some good computer science there
Which (code) editor are you using?
jetbrains rider ide