How to Prevent Concurrent Race Conditions in Go

  Рет қаралды 2,180

Tiago

Tiago

Күн бұрын

Пікірлер: 20
@luccadibenedetto2986
@luccadibenedetto2986 Ай бұрын
Great video. You framed the problem really well. Thanks for sharing
@oscar5915
@oscar5915 Ай бұрын
Thank you for the sharing, looking forward for more concurrency in golang videos, appreciated!
@TiagoTaquelim
@TiagoTaquelim Ай бұрын
Thank you! More to come definitely!
@prashlovessamosa
@prashlovessamosa Ай бұрын
Great thanks for sharing.
@TiagoTaquelim
@TiagoTaquelim Ай бұрын
Thank you for the support as always 💪
@charliesta.abc123
@charliesta.abc123 Ай бұрын
Great video! This becomes a headache in production because it's almost impossible to reproduce
@TiagoTaquelim
@TiagoTaquelim Ай бұрын
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.
@minh1762
@minh1762 Ай бұрын
thank you for the video. can you make a video for GORM. thanks
@arthben
@arthben Ай бұрын
Nice content.. I'm curious, have you try query something like "select ... for update" ?
@TiagoTaquelim
@TiagoTaquelim Ай бұрын
For fetching the post ?
@arthben
@arthben Ай бұрын
@@TiagoTaquelim the idea is before execute update query, select the post with "for update". It will block others until the query commited.
@TiagoTaquelim
@TiagoTaquelim Ай бұрын
@@arthben That will work but my goal was to avoid locking
@LongLe-ju1zd
@LongLe-ju1zd Ай бұрын
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 Ай бұрын
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 Ай бұрын
Which vs code theme you are using?
@TiagoTaquelim
@TiagoTaquelim Ай бұрын
Gruvbox
@nabinsaud4688
@nabinsaud4688 Ай бұрын
Is this repo open source ?
@TiagoTaquelim
@TiagoTaquelim Ай бұрын
Not yet, but it will be.
@iamlostinreality
@iamlostinreality Ай бұрын
Another way of solving this specific problem is to only update fields that are being updated
@TiagoTaquelim
@TiagoTaquelim Ай бұрын
Yup, for these 2 properties it would be ok, but if I wanted to update more fields the code would be a bit hard to maintain imo.
How the Golang Context Package Works
12:12
Tiago
Рет қаралды 4,8 М.
A trick for safely using Golang Maps more efficiently
12:02
managed to catch #tiktok
00:16
Анастасия Тарасова
Рет қаралды 33 МЛН
WHO CAN RUN FASTER?
00:23
Zhong
Рет қаралды 41 МЛН
Harley Quinn lost the Joker forever!!!#Harley Quinn #joker
00:19
Harley Quinn with the Joker
Рет қаралды 27 МЛН
The One BIG Reason to Learn Google's Go Language
17:55
Gary Explains
Рет қаралды 157 М.
How to EFFICIENTLY Handle Errors in Golang APIs
10:27
Tiago
Рет қаралды 5 М.
Svelte 5's Secret Weapon: Classes + Context
18:14
Huntabyte
Рет қаралды 17 М.
Turns out REST APIs weren't the answer (and that's OK!)
10:38
Dylan Beattie
Рет қаралды 140 М.
Go 1.23 Function Iterators are Bad (and what it means...)
8:06
Your backend is too complicated
8:48
Isaac Harris-Holt
Рет қаралды 77 М.
Why Agent Frameworks Will Fail (and what to use instead)
19:21
Dave Ebbelaar
Рет қаралды 44 М.
How to create your Golang APIs from now on with v1.22
12:51
HTMX Sucks
25:16
Theo - t3․gg
Рет қаралды 118 М.
Practical Explanation of Golang INTERFACES
8:27
Tiago
Рет қаралды 5 М.
managed to catch #tiktok
00:16
Анастасия Тарасова
Рет қаралды 33 МЛН