Master Go Programming With These Concurrency Patterns (in 40 minutes)

Sdílet
Vložit
  • čas přidán 22. 05. 2024
  • Enroll in my handcrafted course on Microservices using The Go Programming language based on my experience working in the fintech industry at a tech company with over 70 million users. More info available at the URL below:
    - kantan-coding.teachable.com/p...
    ________________________________________________________________________________________________
    Master Go Programming With These Concurrency Patterns (in 40 minutes)
    ☠️ Course Contents ☠️
    🔎 (0:00:00​) Intro
    🔎 (0:01:52) Go Routines
    🔎 (0:06:22) Go Concurrency Structure
    🔎 (0:09:40) Channels
    🔎 (0:15:20) Select
    🔎 (0:19:34) For-Select Loop
    🔎 (0:20:53) Buffered vs Unbuffered channels
    🔎 (0:28:47) The Done Channel
    🔎 (0:34:05) Pipeline
    Book on Concurrency in Go: www.oreilly.com/library/view/...
    Join the Discord to talk to me and the rest of the community!
    / discord

Komentáře • 396

  • @kantancoding
    @kantancoding  Před měsícem

    🌟 Hey devs! 🌟 Ready to level up your coding game? Check out this awesome course on Microservices using Go! 🚀 From beginner to pro, learn to build scalable apps with ease. Don't miss out! Enroll now 👉 kantan-coding.teachable.com/p/early-bird-special-pricing
    #GoLang #Microservices #CodeWithConfidence 🔥🎉

  • @Aljosja90
    @Aljosja90 Před rokem +9

    Incredibly clear explanation, by far the best on YT. Thanks a lot for all the effort!

  • @PouriyaJamshidi
    @PouriyaJamshidi Před rokem +40

    Fantastic. It is extremely rare to come across this level of concise and easy to follow explanation.

  • @isurucumaranathunga
    @isurucumaranathunga Před 6 dny

    This is like gold, thanks a lot for this valuable content

  • @meditationdanny701
    @meditationdanny701 Před rokem +26

    Hey man worth waiting keep posting such a quality content

  • @guventmz
    @guventmz Před 9 měsíci +2

    Best video I have found on the internet about Go concurrency. You really are great at not missing any important points while teaching. Salute.

    • @kantancoding
      @kantancoding  Před 9 měsíci

      Hey thank you. That’s kind of you to say. I’m really glad this video has helped so many people. Didn’t expect it. I’m happy that you found it helpful! 😊

  • @akmzahidulislam2764
    @akmzahidulislam2764 Před rokem +2

    Just wonderful! How a person be to meticulous in his work and care for his learners! Thanks a million!

    • @kantancoding
      @kantancoding  Před rokem

      Thank you for your kind words! I’m happy to help 🙂

  • @ajinkya-wasnik
    @ajinkya-wasnik Před 6 měsíci

    Soothing sound along soothing Explanation, just perfect.

  • @subharthihazra7764
    @subharthihazra7764 Před 8 dny

    Wow such a nice explaination .. loved it.

  • @LBCreateSpace
    @LBCreateSpace Před 15 dny

    Very clear. Thank you!

  • @omarcrosby
    @omarcrosby Před 8 měsíci +4

    I agree with everyone else's comments. You've done an incredible job of taking a complex and difficult to understand topic and make it clear with a great example demonstrating it. Thank you so much! You've also gained another subscriber.

    • @kantancoding
      @kantancoding  Před 8 měsíci

      Thank you! I’m glad that it was helpful. I really hope that everybody can learn to make use of these features of the language 🚀

  • @smartsome1356
    @smartsome1356 Před 9 měsíci +3

    the last part how you explained the go routines is mind blowing
    this was a mind bending concept and cleared in a easy way

    • @kantancoding
      @kantancoding  Před 9 měsíci +1

      Thank you! I’m really happy that it helped 😊

    • @omarcrosby
      @omarcrosby Před 8 měsíci +1

      agreed, my mind was blown as well

  • @hary6416
    @hary6416 Před rokem +13

    Somehow youtube recommend me this and wasn't disapointed at all. Thanks for the awesome explanation!

    • @kantancoding
      @kantancoding  Před rokem

      That’s great to hear 🙂 I’m glad you liked it!

  • @paulina5247
    @paulina5247 Před 11 měsíci

    Definitely the best video about concurrency in go I've seen so far! 🤩

    • @kantancoding
      @kantancoding  Před 10 měsíci

      Thank you! I’m happy that it was helpful 😊

  • @eyevanovich
    @eyevanovich Před 3 měsíci

    This was fantastic and well explained. I now have a way better understanding of how channels and select statements work within Go. Great job.

    • @kantancoding
      @kantancoding  Před 3 měsíci

      Thank you! I’m glad it helped. Thanks for watching 🙂

  • @taylormonacelli
    @taylormonacelli Před 8 měsíci +1

    Finally, this tutorial gives me the aha moment with go channels. Terrific job. Very thorough explanations.

    • @kantancoding
      @kantancoding  Před 8 měsíci

      That’s great to hear! Thank you 😊

  • @davidcopenhaver5583
    @davidcopenhaver5583 Před rokem +47

    One of the best I've seen. You are the rare type that can take complex concepts and explain them so well. I hope you continue to make this kind of great content!

    • @kantancoding
      @kantancoding  Před rokem +4

      Hey, this comment made my day! Thank you. I’m really happy to be able to help others understand complex things 🙂

    • @lbmclean
      @lbmclean Před 11 měsíci

      I subscribed immediately lol. even I could understand the concepts

  • @raianmr2843
    @raianmr2843 Před rokem +17

    this tutorial/guide has more personality than the entire cast of friends

    • @kantancoding
      @kantancoding  Před rokem +1

      Lol I’m not sure if this is sarcastic or not but thanks 😂

  • @niteenautade
    @niteenautade Před rokem

    The best concurrency video I have watched so far! Good work!

  • @MeranoFox
    @MeranoFox Před rokem +6

    You really put a lot of effort into this. Well done!

    • @kantancoding
      @kantancoding  Před rokem

      Thank you! I really do try so your words mean a lot 🙂

  • @aseelsaghir8078
    @aseelsaghir8078 Před rokem +1

    Well explained! Watched many Go Concurrency videos but this is the best one.

  • @adityapratama3296
    @adityapratama3296 Před rokem +1

    Great explanation! This video is the most helpful for me so far to understand concurrency in Go. Thanks, Mate!

    • @kantancoding
      @kantancoding  Před rokem

      That’s great to hear! Always happy to help 🙂

  • @constantinci
    @constantinci Před 8 měsíci +2

    From now on, you've got one more subscriber. Great content. I can't wait for some more advanced topics like, dependency injection, dynamic typing (interface{}) etc. As a php programmer recently I rewrote one of my microservices, and I was amazed by ease of doing it just with go. Apart of painfully precise data types declaration, and luck of many useful generic functions present in php core, I had almost ecstatic pleasure. Most of the time I do hard core backend staff with data transfer and after speed comparison I fell in love with go 🙂

    • @kantancoding
      @kantancoding  Před 8 měsíci +1

      Welcome! Yeah Go is definitely a great language. It seems it’s starting to pick up in popularity and the topics you mentioned seem like good video ideas so I will add them to my backlog. Thank you for the valuable feedback and thank you for watching ❤️

  • @cod3a
    @cod3a Před rokem +1

    thanks for the video bro, love the way you teach ❤️

  • @zendr0
    @zendr0 Před rokem

    Nice. Thank you for this.

  • @bhaveshmuleva2352
    @bhaveshmuleva2352 Před 8 měsíci

    Really Good Explanation being a beginner in go i was able to understand everything you have taught for concurrency patterns

    • @kantancoding
      @kantancoding  Před 8 měsíci

      That’s awesome since that was what I was hoping for! Thank you for the feedback 😊

  • @malaypatel4014
    @malaypatel4014 Před 5 měsíci

    one of the best video. you explain stuff very well

  • @dangis2400
    @dangis2400 Před rokem +2

    thank you. the principle of pipelines is great and your explanation is simple enough for newbies to understand.

    • @kantancoding
      @kantancoding  Před rokem +1

      Thank you for your kind words! I’m glad you enjoyed it 😊

  • @BanibrataDutta
    @BanibrataDutta Před rokem +4

    Excellent tutorial. There are lot of very smart developers around, but very few who can teach a relatively complex subject in an easy fashion. Kudos, and keep posting.

    • @kantancoding
      @kantancoding  Před rokem

      Thank you! I’m really happy to hear that because it’s what I strive for 🙂

  • @GamingGuruHQ
    @GamingGuruHQ Před 8 měsíci

    Extremely clear explanation on concurrency . Keep up the good work.

  • @amitnakash1642
    @amitnakash1642 Před 29 dny

    great video mate!

  • @casper64
    @casper64 Před rokem

    Amazing video just what I was looking for!

  • @veronez9846
    @veronez9846 Před 2 měsíci

    best video to explain how goroutins work. nice!

  • @kurshadqaya1684
    @kurshadqaya1684 Před 2 měsíci

    Learned Go in 2017.
    Never understood them until now.
    Thank you!

  • @TeamZer01
    @TeamZer01 Před 2 měsíci

    @Kantan, I'm definitely not regretting subscribing to this channel. I'm learning go and so far you have been a huge help for me to understand complex go concepts. Thank you sir :)

    • @kantancoding
      @kantancoding  Před 2 měsíci

      I’m really happy to hear that! Thanks for your comment 😊 it means a lot

  • @NguyenDangVo
    @NguyenDangVo Před 11 měsíci

    Excellent! This established a solid foundation to anybody who wants to understand concurrency not only for Golang but for any programming language.

    • @kantancoding
      @kantancoding  Před 10 měsíci

      I’m happy to hear that! Thank you 😊

  • @nsgirish
    @nsgirish Před 3 měsíci

    Excellent explaination. Thanks sir🎉

    • @kantancoding
      @kantancoding  Před 3 měsíci

      Thanks for watching! Happy to help 😊

  • @AntonyMapfumo
    @AntonyMapfumo Před rokem

    Thank for you. You've just got yourself another subscriber.

  • @Chetansinh_chauhan6419

    Amazing just love to learn in your way....god bless you...🙏

  • @nanateinumondestanley7819
    @nanateinumondestanley7819 Před 2 měsíci

    I'm glad I came across this tutorial.

    • @kantancoding
      @kantancoding  Před 2 měsíci +1

      Happy to help! Thanks for watching 😊

  • @VijayRaj-ij4on
    @VijayRaj-ij4on Před 6 měsíci

    Thanks for making this.

    • @kantancoding
      @kantancoding  Před 5 měsíci +1

      My pleasure. Thanks for watching 🙂

  • @memeherp166
    @memeherp166 Před 8 měsíci

    Thanks kantan, coincidentally yours video help me to solve Producer-consumer problem.

    • @kantancoding
      @kantancoding  Před 8 měsíci

      😂that’s awesome! Seems you are working with some advanced concepts. I’m currently working on some videos touching on more advanced concepts. Be on the lookout and thanks for watching! ❤️

  • @theophiluseniayewu6270

    Incredibly easy to understand.....Thanks alot

  • @abduljabbarazam943
    @abduljabbarazam943 Před 10 měsíci

    Really useful video thank you. This has helped me alot trying to understand async programming in Rust. I've never written go.

    • @kantancoding
      @kantancoding  Před 10 měsíci

      That’s awesome that the video is also helpful for other languages. Thanks for the feedback! 🙂

  • @yashkalavadiya5021
    @yashkalavadiya5021 Před rokem +1

    This video helped me a lot to clear my doubts. Thanks

  • @JoaoPedroCBoell
    @JoaoPedroCBoell Před 7 dny

    very nice! thx

  • @invisibleinvisible83
    @invisibleinvisible83 Před 6 měsíci

    Thank you so much for your video 🙏🏻🌹

  • @lxkgxgxktstd
    @lxkgxgxktstd Před rokem

    Very clear tutorial, perfect.

  • @natashaporwal2481
    @natashaporwal2481 Před 8 měsíci

    great explanation, please make more of this!

    • @kantancoding
      @kantancoding  Před 8 měsíci

      Thank you! More videos coming soon 🙂

  • @ilariacorda
    @ilariacorda Před 3 měsíci

    the suspense music is so spot on aha Great tutorial, fab

  • @WallyBarnum
    @WallyBarnum Před 10 měsíci

    Great explanation. Thank you.

  • @laxmangiri5511
    @laxmangiri5511 Před rokem

    brother thanks a lot , many concepts like goroutines, concurrent, time.Sleep , it's only been 6:12 and i had cleared all my concepts. I came to this video after watching 10 videos. Thanks you brother.

    • @kantancoding
      @kantancoding  Před rokem

      😂 that’s great bro. I really try to explain things clearly so it makes me really happy to get this type of feedback 🙂

  • @buntysingh7315
    @buntysingh7315 Před rokem

    wonderful explanation thankyou!!

  • @Mortagus
    @Mortagus Před 6 měsíci

    Very cool demonstration.
    I'm just starting at Go but this is not my first language (I've been a backend developer for 12+ years).
    This language is getting more interesting at each new video I watch, this is exiting ^^

    • @kantancoding
      @kantancoding  Před 6 měsíci +1

      That’s awesome! No language is perfect but I hope that you’ll come to enjoy this one as much as I have 😆

  • @nikhilsrivastava9120
    @nikhilsrivastava9120 Před 8 měsíci

    you are amazing teacher, the best !!

    • @kantancoding
      @kantancoding  Před 8 měsíci

      Thank you! I’m really glad it helped 😊

  • @kevinz1991
    @kevinz1991 Před 24 dny

    fantastic video thanks so much

  • @proudmoroccan8164
    @proudmoroccan8164 Před 7 měsíci

    Great stuff, thank you for sharing.

    • @kantancoding
      @kantancoding  Před 6 měsíci

      Happy to help 😊 thanks for watching!

  • @nitishagrahari9943
    @nitishagrahari9943 Před 8 měsíci

    best content, In my learning golang journey.. awesome, mind blowing

    • @kantancoding
      @kantancoding  Před 8 měsíci

      Thank you for your kind words, I’m so glad it helped 🙂

  • @itmemo8617
    @itmemo8617 Před 7 měsíci

    Liked and subscribed i dont think ill regret it !

  • @gitgyan5202
    @gitgyan5202 Před rokem +1

    The way you explained made it look so easy bro👏.

    • @kantancoding
      @kantancoding  Před rokem +1

      That’s great bro. I’m glad the explanation worked for you 😄

  • @VictorYarema
    @VictorYarema Před 10 měsíci +1

    Wow! One of the best tutorials into channels I have seen. Really great explanation of what is happening under the hood. For me the first half was a tiny bit boring because of too many details which I already know and which I think every adequate junior software engineer should be already aware of. The second half is perfectly balanced in terms of new material and under the hood explanations. Thanks!

    • @kantancoding
      @kantancoding  Před 10 měsíci

      Thanks for the feedback! I’m glad it was helpful 😊

  • @fyka
    @fyka Před měsícem

    lovely!

  • @dontry1812
    @dontry1812 Před rokem

    Great work!

  • @dhaw
    @dhaw Před 11 měsíci

    This is Amazing !!!

  • @systemforge
    @systemforge Před rokem

    Fantastic!

  • @ericwang8760
    @ericwang8760 Před rokem

    Thanks for your video.😃

  • @theprolifeclub
    @theprolifeclub Před 6 měsíci

    One of the beat very helpful ❤

  • @hereallyfast
    @hereallyfast Před rokem

    Best explanation

  • @badrbadr3793
    @badrbadr3793 Před rokem +1

    Thank you and thanks to youtube algo for this recommendation

    • @kantancoding
      @kantancoding  Před rokem +1

      😂 happy that it found you! Thank you 🙂

  • @amanchaudhary101
    @amanchaudhary101 Před 10 měsíci

    You're taking over👍

  • @stefanababio6974
    @stefanababio6974 Před rokem

    Very impressed. More videos please

  • @hamzazahidulislam3490
    @hamzazahidulislam3490 Před měsícem

    Thanks ❤

  • @alihejazi6345
    @alihejazi6345 Před rokem

    Awesome tutorial ❤

  • @AliAshour-ww9ox
    @AliAshour-ww9ox Před rokem

    great tutorial , thank you

  • @tyronemguni3895
    @tyronemguni3895 Před rokem +1

    Great video brother. Hope you keep it going.
    I suggest though that you make the videos in 10 minutes series instead of a single large chunk. It becomes pretty overwhelming and difficult to index when I am trying to refer to your videos when working on something. But ey, you just got yourself a subscriber

    • @kantancoding
      @kantancoding  Před rokem

      Good point. It’s hard to sit through longer videos when the topics are complex. I’ll definitely keep this in mind! Thanks bro 🙏

  • @alessandroferrari2166

    👏🏼👏🏼 subscribed and bell on

  • @FriedrichBoettger
    @FriedrichBoettger Před 10 měsíci

    This is quite clear, even though I'm not a Go programmer. The music, however, is very distracting. Silence is the best accompaniment for an instructional video.

    • @kantancoding
      @kantancoding  Před 10 měsíci

      Thanks for the feedback! It’s really helpful 🙂

  • @unnaturalatrophy5377
    @unnaturalatrophy5377 Před rokem +1

    This video finally cleared goroutine and channel for me. Watched so many videos prior to it hut was confused as hell.

    • @kantancoding
      @kantancoding  Před rokem +1

      😂🤣 I’m really happy to hear that. With go routines and channels under your belt, you can now take full advantage of the language 🚀

  • @vincent3542
    @vincent3542 Před 7 měsíci

    This explanation are really good, explained systematically from bottom to top, i came from frontend dev who dont know nothing about conccurent programming, even though i watch ZTM Golang i still cannot fully grasp the idea behind this Pattern.
    Love from indonesian bro, already liked videos also subscribed and shared!!

    • @kantancoding
      @kantancoding  Před 6 měsíci

      Hey! Welcome and thanks for supporting bro. I’m happy that the videos have been helpful! 😀

  • @iarbainaltainvantdevara
    @iarbainaltainvantdevara Před 6 měsíci

    As a newcomer to the world of Golang and goroutines, I loved every second of this video!

    • @kantancoding
      @kantancoding  Před 6 měsíci +1

      That’s great! I hope more people take up this great language! Thanks for watching my video 😊

  • @aliadel1723
    @aliadel1723 Před 9 měsíci

    Keep Going Bro ♥

    • @kantancoding
      @kantancoding  Před 9 měsíci +1

      Thanks for the encouragement brother ❤️

  • @marpaxr3986
    @marpaxr3986 Před rokem

    Cool!👍

  • @lautaroblasco6852
    @lautaroblasco6852 Před rokem

    Great video

  • @Bleyo
    @Bleyo Před 10 měsíci

    amazing content

  • @baleshj
    @baleshj Před rokem +1

    Long time subscriber
    Your videos never disappoint me

    • @kantancoding
      @kantancoding  Před rokem +1

      Happy to see people sticking around. Thank you for your support! 😊

  • @politeboy2996
    @politeboy2996 Před rokem +1

    God bless you, do more for us if possible.

    • @kantancoding
      @kantancoding  Před rokem

      Thank you 🙂 I will definitely try to do more 🚀

  • @ankurkumar-zo2bg
    @ankurkumar-zo2bg Před rokem

    great video bro

  • @Kavinnathcse
    @Kavinnathcse Před 8 měsíci

    Great tutorial ..

  • @jondoe79
    @jondoe79 Před rokem +4

    Your tutorials so addictive, We want MORE!

    • @kantancoding
      @kantancoding  Před rokem

      Thank you 😊
      Is there any topic in particular that you’re interested in?

  • @linwei2906
    @linwei2906 Před rokem

    good job ! body! god bless U😃

  • @Nicholascarballo
    @Nicholascarballo Před rokem +1

    Do you plan to continue making videos about Go? I really enjoyed your explanation and the background music hit the right cord 👌🏻

    • @kantancoding
      @kantancoding  Před rokem +1

      Thanks for the feedback! 😄
      Yes, I will create more Go videos because Go is one of my favorite languages but this is not a Go specific channel. So for those that will be annoyed if I post videos unrelated to go, it's probably best not to subscribe 👍

  • @nirajgupta458
    @nirajgupta458 Před 10 měsíci

    Best tutorial I found

  • @VaibhavPatil-rx7pc
    @VaibhavPatil-rx7pc Před rokem

    Excellent

  • @cipcip4986
    @cipcip4986 Před rokem

    Thanks

  • @RogerDemetrescu
    @RogerDemetrescu Před rokem +11

    Liked and subscribed. Very good explanation
    (but the background music is little bit annoying and distracting)

    • @kantancoding
      @kantancoding  Před rokem

      Thanks for the feedback! I’m glad you liked it 🙂

    • @chandukona3999
      @chandukona3999 Před 11 měsíci

      @@kantancoding please never ever use that background music

  • @EmadMokhtar
    @EmadMokhtar Před 11 měsíci

    Good explanation for Go routine and channels. Well done and thanks. I've a question, what are the tools you're using for the annotations?

    • @kantancoding
      @kantancoding  Před 11 měsíci

      Thanks. Sorry but what do you mean by annotations?

    • @EmadMokhtar
      @EmadMokhtar Před 11 měsíci

      @@kantancoding I mean the drawings and writing. Which app and tablet are you using?

  • @pacman777
    @pacman777 Před měsícem

    Nieko nesupratau :D

  • @kx01
    @kx01 Před rokem +1

    It was easy to understand. Finally I understand the logic behind using the concurrency. I used to see those mentioned in the project code base but didn't understand properly. Now I can implement my own :').
    It was a nice video. I wanted to go through more but there are no more videos on golang 🥺
    Sorry if I am greedy. I want to have more videos related to golang or design 🥺.

    • @kantancoding
      @kantancoding  Před rokem +1

      There actually is another video on Go that’s over 2 hours long: How To Structure Your Go App - Full Course [ Hex Arch + Tests ]
      czcams.com/video/MpFog2kZsHk/video.html
      Also, thanks for your comment. I’m glad that it helped 🙂

    • @anistoryhindi
      @anistoryhindi Před rokem

      @@kantancoding Will you be posting videos on backend technology? NSQ, KAFKA, HLD concepts etc?

    • @kantancoding
      @kantancoding  Před rokem

      @@anistoryhindi Are you talking specifically for Go? I've already created some HLD videos. Will do more in the future but HLD isn't a language specific thing.
      And yeah, I have plans to make some kafka stuff. I have no experience with NSQ so at least for the time being, no plans for that.

    • @anistoryhindi
      @anistoryhindi Před rokem

      @@kantancoding Not go specific I meant general :)

  • @wimhuizinga
    @wimhuizinga Před rokem +2

    Hi Kantan Coding! You've got a new subscriber. I'm switching from Java to Go and this video helps me a lot to understand the goroutine, channel and select concepts. Thank you for this video! I think a channel is quite similar to Java's LinkedBlockingQueue. The non-buffered channel would be like a LinkedBlockingQueue of size 1. The concepts are very clear, but I'm still struggling a bit with the syntax. Is it right that Go passes copies of the data into the channel instead of a reference? And is it a good idea to pass references into a channel?

    • @kantancoding
      @kantancoding  Před rokem +1

      Hey, I’m glad it helped you out! In regard to your question, unlike Java, Go has pointers. So I think you’re question will answer itself if you look into how pointers work in Go. I was actually considering making a video on this topic so maybe I’ll move that up on my list. Anyways, hope it helps!

  • @memoria111
    @memoria111 Před 8 měsíci

    So good