WorkerPools in Go Tutorial

  Рет қаралды 20,595

TutorialEdge

TutorialEdge

Күн бұрын

Пікірлер: 18
@Tutorialedge
@Tutorialedge 3 жыл бұрын
If you are looking to implement these for production-level applications then it's worthwhile having a look at the following articles: The acme of foolishness - by Dave Cheney dave.cheney.net/2016/12/22/never-start-a-goroutine-without-knowing-how-it-will-stop Thread Pooling in Go Programming - by Bill Kennedy www.ardanlabs.com/blog/2013/05/thread-pooling-in-go-programming.html These were recommended by www.reddit.com/user/Cazineer/ on Reddit 🙏
@NunoLopes99
@NunoLopes99 3 жыл бұрын
Very simple and clear explanation! 👏👏👏
@Tutorialedge
@Tutorialedge 3 жыл бұрын
Welcome Gophers 👋 This video on constructing Worker Pools in Go has been taken directly from my new course - The Beginner's Guide to Go - tutorialedge.net/courses/go-beginners-guide/ If you want support learning Go, then feel free to join the TutorialEdge clan and join us on the Discord server where you can gain access to real-time support!
@redcokes
@redcokes Жыл бұрын
Thank you for tutorial!
@RN-er7mz
@RN-er7mz 3 жыл бұрын
Thanks for the video
@wisdommatthew6775
@wisdommatthew6775 3 жыл бұрын
Awesome tutorial 🥰🥰🥰
@vamsikrishnasiddu3525
@vamsikrishnasiddu3525 2 жыл бұрын
Nice Explanation of worker pool. you can range over the results channel to receive the output instead of using for loop
@devinsomnia366
@devinsomnia366 3 жыл бұрын
Welcome back \o/
@aqilisayev5529
@aqilisayev5529 3 жыл бұрын
Thanks for great explanation!
@Tutorialedge
@Tutorialedge 3 жыл бұрын
Absolutely! I'm glad you liked it!
@vic_shine
@vic_shine 3 жыл бұрын
Thanks for the video! But, which thing in a real life project can solve this solution? Please more explain this for full picture 🖼️
@halfi
@halfi 3 жыл бұрын
You have deadlock here. You write to bufferized chan jobs, which write to the result chan. When both of buffers will be filled, it will cause of the deadlock. You could try just add more than 6 urls and get deadlock. You shouldn't read to the jobs chan and read from the results chan in one thread.
@MuhammadIsmail-bi8ld
@MuhammadIsmail-bi8ld 2 жыл бұрын
After experiencing it my self, the quick workaround it actually wrap lines 49-52 with an anonymous go func() So it becomes: ``` go func() { for _, url := range urls { jobs
@fffsjkfbrutireer
@fffsjkfbrutireer 11 ай бұрын
Forgot close body after http call, it makes memory leaks
@kccccccccccccccc0904
@kccccccccccccccc0904 Жыл бұрын
Why did you loop over the results channel like that? Couldn’t you have just ranged over the channel itself?
Build a Go Serverless App in 5 Minutes with Serverless-Stack
5:54
Understanding Contexts in Go in 5(-ish?) Minutes
15:14
TutorialEdge
Рет қаралды 60 М.
Sigma girl and soap bubbles by Secret Vlog
00:37
Secret Vlog
Рет қаралды 14 МЛН
БИМ БАМ БУМ💥
00:14
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 4,7 МЛН
DAD LEFT HIS OLD SOCKS ON THE COUCH…😱😂
00:24
JULI_PROETO
Рет қаралды 17 МЛН
Amazing weight loss transformation !! 😱😱
00:24
Tibo InShape
Рет қаралды 63 МЛН
Golang Channels Or Wait Groups? Let Me Explain.
18:32
Anthony GG
Рет қаралды 20 М.
GopherCon 2016: Ivan Danyliuk - Visualizing Concurrency in Go
19:41
Gopher Academy
Рет қаралды 24 М.
How To Stream Large Files Over TCP In Golang
17:50
Anthony GG
Рет қаралды 31 М.
Building REST APIs in Go 1.22 - New Features
7:10
TutorialEdge
Рет қаралды 27 М.
Concurrency in Go
18:40
Jake Wright
Рет қаралды 611 М.
Why You Shouldn't Nest Your Code
8:30
CodeAesthetic
Рет қаралды 2,6 МЛН
Master Go Programming With These Concurrency Patterns (in 40 minutes)
46:15
How I Structure New Projects In Golang
21:32
Anthony GG
Рет қаралды 55 М.
A consistent logging format for Go
11:27
Google Open Source
Рет қаралды 20 М.
Sigma girl and soap bubbles by Secret Vlog
00:37
Secret Vlog
Рет қаралды 14 МЛН