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

КОМЕНТАРІ • 11

  • @Wil_Bloodworth
    @Wil_Bloodworth 6 місяців тому +6

    And... 25+ years later, we're right back around to semaphores.

  • @allinvanguard
    @allinvanguard 6 місяців тому +3

    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.

  • @johnnm3207
    @johnnm3207 4 місяці тому

    yoooh, bro you've got mad knowledge on these topics

  • @EzequielRegaldo
    @EzequielRegaldo 6 місяців тому +1

    Simply awesome, love your channel :D

  • @salehdanbous6783
    @salehdanbous6783 6 місяців тому +2

    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!

    • @RawCoding
      @RawCoding  6 місяців тому +2

      Noted, ill make something on it )

  • @allinvanguard
    @allinvanguard 6 місяців тому +1

    What the hell is that example setting haha, I love it!

  • @ishtilkind
    @ishtilkind 6 місяців тому

    Very nice demo and explanation! As a patreon subscriber, I couldn't find the source code.

  • @JonWoo
    @JonWoo 6 місяців тому

    That's some good computer science there

  • @cocoscacao6102
    @cocoscacao6102 6 місяців тому

    Which (code) editor are you using?

    • @alvkn
      @alvkn 6 місяців тому +1

      jetbrains rider ide