Practical Concurrency in Go - GoRoutines, Mutexes, Channels and more

  Рет қаралды 6,954

sigfault

sigfault

Күн бұрын

Пікірлер: 25
@sigfaults
@sigfaults 6 ай бұрын
Hey guys! The repo with the source code for this video is here: github.com/sigrdrifa/go-concurrency And my NVIM config is here: github.com/sigrdrifa/nvim
@rea_kr
@rea_kr 6 ай бұрын
누나. 예뻐요.
@daveragos
@daveragos 6 ай бұрын
pin it
@paveldroo
@paveldroo 5 ай бұрын
Great content, just wanted to point out not entirely correct information about difference in buffered and unbuffered channels. They are not about unlimited and limited data, but about blocking/unblocking operations. Unbuffered channel sends one piece of data and current goroutine stops execution until another goroutine will read the data from the channel. On the other hand, buffered channel allows execution until channel becomes full (the capacity parameter in make() function). When buffered channel is full it behaves like unbuffered channel until some goroutine will read some data from it. Hope it was interesting for you. I’ve watched all your videos, good job!
@frankjansson7563
@frankjansson7563 6 ай бұрын
I've been wanting to get started with Go these videos are really enjoyable. I enjoy your Non Go videos to. Keep spreading the joy of coding :)
@dejanduh2645
@dejanduh2645 6 ай бұрын
This is the best practical example of concurrency in go I have ever seen. Great job, keep up 👍
@AnandKumar-dc2bf
@AnandKumar-dc2bf 6 ай бұрын
Thanks for ur videos pls make more and more golang videos please.....
@v3ronez
@v3ronez 6 ай бұрын
one of the bests videos about concurrency.
@manishbadgotra
@manishbadgotra 6 ай бұрын
You really are a Good teacher 💯 btw Love from India ❤
@vb_gh
@vb_gh 5 ай бұрын
Thank you very much for making my requested video 🙏🏽. This is a good and clear real life use case. I would also like to ask for another video about what are the differences using json.Marshal or json.Unmarshal and json. Encoder or json.Decoder in go. I know they both are used to convert go types to json and vice versa. But I don't know why and where to use one over the other. A video with some vivid/concrete examples of why and where to use each or reply to this comment could help me understand. Thank you in advance 🙏🏽.
@codelinx
@codelinx 2 ай бұрын
What is this life you are so damn smart 👩‍💻… this is so helpful.
@DaaWood998
@DaaWood998 2 ай бұрын
Very useful and insightufl video, thanks MAN 😏😏
@baronbeans5001
@baronbeans5001 6 ай бұрын
This was so helpful. Any chance you can do a video on context in go?
@emersonjjsouza
@emersonjjsouza 5 ай бұрын
Great examples, so helpful 😍
@ninapryadko9306
@ninapryadko9306 6 ай бұрын
Thank you so much, absolutely excellent
@GushchinAndrei
@GushchinAndrei 4 ай бұрын
Excellent. Please keep doing
@doloreslaflipoflopo2746
@doloreslaflipoflopo2746 7 күн бұрын
neovide is fire. But I find the animation a bit too much. I have disabled it for myself. care to share your vim configs? or this is nvchad?
@liftingisfun2350
@liftingisfun2350 Ай бұрын
what are your thoughts on following a pattern like main uses a handler which uses a service which uses a repository? is layered architecture too much for go?
@sigfaults
@sigfaults Ай бұрын
Hey, that's not unthinkable but I would be wary of using too many layers and it might become hard to follow. I normally have a more flat architecture where I inject things on the same level if that makes sense
@nanonkay5669
@nanonkay5669 5 ай бұрын
Honestly, it was all good until we got to worker pools. Then it was all confusing for me there after
@georgecrisan9499
@georgecrisan9499 6 ай бұрын
the example at 10:30 cannot be correct, the error is caused by the fact that there is no Currency item in the currencies map with key 'usd' at the time the go routine outside of the waiting group is running. If you add a 'usd' currency in the code above the error is gone and it prints the rates when it has the record whenever the thread has a chance to run. Also at 22:40 you say let's close the resultChan but the code below has close(currencyChan). The question is why closing only one? why not both or why any at all?
@glepnir522
@glepnir522 6 ай бұрын
😍😍😍😍
Build real-time modern web apps with Go, WebSockets and HTMX
35:11
How To Use Goroutines For Aggregating Data In Golang?!
17:15
Anthony GG
Рет қаралды 42 М.
СКОЛЬКО ПАЛЬЦЕВ ТУТ?
00:16
Masomka
Рет қаралды 3,6 МЛН
How to Fight a Gross Man 😡
00:19
Alan Chikin Chow
Рет қаралды 18 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 12 МЛН
Как Я Брата ОБМАНУЛ (смешное видео, прикол, юмор, поржать)
00:59
JetBrains Youth Coding Club 2024-2025, Youth Challenge
1:45:01
Pavel Mavrin
Рет қаралды 10
Всё про конкурентность в Go
23:36
defer panic
Рет қаралды 20 М.
This is why Go Channels are awesome
6:06
Web Dev Cody
Рет қаралды 15 М.
Goroutines Crash Course (Mutex, Channels, Wait Group, & More!)
15:42
Concurrency is not Parallelism by Rob Pike
31:23
gnbitcom
Рет қаралды 138 М.
This is your last video about Golang Structs!
15:57
Flo Woelki
Рет қаралды 9 М.
Master Go Programming With These Concurrency Patterns (in 40 minutes)
46:15
Golang: The Last Interface Explanation You'll Ever Need
17:58
Flo Woelki
Рет қаралды 21 М.
СКОЛЬКО ПАЛЬЦЕВ ТУТ?
00:16
Masomka
Рет қаралды 3,6 МЛН