Loading video player...
π’ Golang has worked a lot on it's concurrent features and although this is the 4th video about it ( and is 34 minute long! ), still, it's not enough. In this video I tried to talk about main techniques in Golang for aligning multiple Goroutines. We talk about concepts like wait group, atomic, mutex, context and select statement. We also see some examples of how to actually use them in code to coordinate and manage channels and goroutines. If you have any questions, just drop it down in the comments. Other videos about Golang concurrency: https://youtu.be/-oxmFbhGmEA https://youtu.be/SHMNwdY7sYo https://youtu.be/HMy4yTxcqUY Other videos about golang: https://youtu.be/9RF8PaTGZSo https://youtu.be/l-gue4qkfRc https://youtu.be/mEXNz2hARdA https://youtu.be/4zPnTQ1Rmus βββββββββββββββ 0:00 - Intro, previous concepts of golang concurrency, the whole problem 0:48 - Building a big Channel, Is it a good idea? Not efficient, confusing 2:25 - Sync.waitgroup, coordinating multiple goroutines, waiting for goroutines to finish their job, Workerpool 8:42 - Mutex, why sometimes they are more efficient than channels? 13:38 - Atomic, more lightweight than Mutex, 15:52 - Context, Where we use concurrent programming in action, connecting to other servers 21:11 - Select, Reading from multiple channels, 26:21 - Context is like a tree, a single Goroutine throughout all layers of the application 32:39 - Outro, why I don't post video every week !? βββββββββββββββ Gear: Mic: Shure SM7B - https://amzn.to/4kUN4s0 Audio interface: Focusrite, Scarlett Solo 3rd Gen - https://amzn.to/4kO1qKE Chair: https://amzn.to/4mSphuz Softbox: Raleno Sofbox Photography Lighting Kit - https://amzn.to/4kT0Uev βββββββββββββββ Enjoyed the video? Hit that like button, subscribe, and explore my channel for more expert tips and tricks!: https://www.youtube.com/@ParsaTubee?sub_confirmation=1 βββββββββββββββ Want to level up, land your dream job, or study at top universities? Iβve got you covered! From tips to insights, Iβll share everything you need for the journey ahead! βββββββββββββββ Check out my Instagram for my routine life: https://www.instagram.com/parsa_tube?igsh=MWU3dm5hcGJ1c2p3aA%3D%3D&utm_source=qr Check out my Discord server, where we can talk to each other: https://discord.gg/HQQjt6xp βββββββββββββββ On this channel, I share my journey as a computer engineering student and software engineerβeverything Iβve learned about software development, leveling up my career, and more