How to Prevent Concurrent Race Conditions in Go

Поделиться
HTML-код
  • Опубликовано: 2 дек 2024

Комментарии • 21

  • @luccadibenedetto2986
    @luccadibenedetto2986 4 месяца назад +3

    Great video. You framed the problem really well. Thanks for sharing

  • @oscar5915
    @oscar5915 4 месяца назад +1

    Thank you for the sharing, looking forward for more concurrency in golang videos, appreciated!

    • @TiagoTaquelim
      @TiagoTaquelim  4 месяца назад

      Thank you! More to come definitely!

  • @minh1762
    @minh1762 4 месяца назад +2

    thank you for the video. can you make a video for GORM. thanks

  • @prashlovessamosa
    @prashlovessamosa 4 месяца назад +2

    Great thanks for sharing.

    • @TiagoTaquelim
      @TiagoTaquelim  4 месяца назад

      Thank you for the support as always 💪

  • @siya.abc123
    @siya.abc123 4 месяца назад +1

    Great video! This becomes a headache in production because it's almost impossible to reproduce

    • @TiagoTaquelim
      @TiagoTaquelim  4 месяца назад +1

      Indeed, thats why I made that small script to reproduce it myself. But ye it's nice to log when this happens to know how often it happens or not.

  • @volodymyrvolodymyr2126
    @volodymyrvolodymyr2126 Месяц назад

    Why do you write full object fetched from data source back to datasource after you modified one property? Shouldn't you mdify only field present in request?

  • @arthben
    @arthben 4 месяца назад +1

    Nice content.. I'm curious, have you try query something like "select ... for update" ?

    • @TiagoTaquelim
      @TiagoTaquelim  4 месяца назад

      For fetching the post ?

    • @arthben
      @arthben 4 месяца назад

      @@TiagoTaquelim the idea is before execute update query, select the post with "for update". It will block others until the query commited.

    • @TiagoTaquelim
      @TiagoTaquelim  4 месяца назад +1

      @@arthben That will work but my goal was to avoid locking

  • @LongLe-ju1zd
    @LongLe-ju1zd 4 месяца назад +1

    I am completely new to backend, is your paid course for complete newbies, if not what should I learn first to be able to take the course?

    • @TiagoTaquelim
      @TiagoTaquelim  4 месяца назад +1

      It requires you to be familiar with Go and some basics of programming.
      If you're new to building web applications but know already Go and basics of programming then it's a good fit, otherwise check other videos on my channel to see if they're too complex.

  • @alexaconner7251
    @alexaconner7251 4 месяца назад

    Which vs code theme you are using?

  • @nabinsaud4688
    @nabinsaud4688 4 месяца назад +1

    Is this repo open source ?