WaitGroups - Part 2 (Concurrency in Go #3)

  Рет қаралды 7,324

Steve Hook

Steve Hook

Күн бұрын

In this video we'll continue exploring WaitGroups and dive into more complex examples and real world issues WaitGroups solve. By the end of this video you'll feel even more comfortable with WaitGroups and the way Rate Limiting works
#golang #steevehook #concurrency #waitgroups #rate_limiting
00:00 - Intro
01:02 - Rate Limiting Intro
02:09 - Limit Go Routines Example
05:58 - Rate Limiting Example - server.go
10:25 - Rate Limiting Example - main.go
14:06 - Outro
Enjoy 🚀💻🚀
✍ RESOURCES:
► github.com/golang-basics/conc...
💰 Support me on Patreon:
► / steevehook
💰 Paypal Donation:
► paypal.me/steevehook
💰 Buy me a Coffee:
►www.buymeacoffee.com/steevehook
🐧 FEEDBACK:
► gophertuts.typeform.com/to/j2...
💬 COMMUNITY:
► / discord
💻 GITHUB:
► github.com/gophertuts
► github.com/steevehook
💻 Repl.it:
► repl.it/@steevehook
💻 Exercism:
► exercism.io/profiles/steevehook
📖 Medium:
► / steevehook
💬 TWITTER:
► / @steevehook
💬 FACEBOOK:
► / steevehookmd
💬 REDIT:
► / steevehook
💬 INSTAGRAM:
► / steevehook
✉️ EMAIL
► steevehook@gmail.com
⚡ WEBSITE:
► www.steevehook.com
🎧 Music:
► www.epidemicsound.com/referra...
► artlist.io/Steve-411836
🎥 Gear used:
► Sony 𝛼7III
► Rode NTG-3
► Golden Age Project Pre73-JR preamp
______________________________________________________________________________
Software engineering is one of the most accessible fields nowadays, but it's easy to get lost in the huge amount of technologies and ways to approach engineering problems. Lots of languages, frameworks, solutions and ways to be a productive engineer.
I share my own experience on what is like to be a software engineer and the skills required to be a productive one. On this channel I share my thoughts, opinions and video tutorials about topics related to a certain technology, to make it easier for you to ultimately make a choice or just get better at software engineering by learning from my mistakes/experience.
Make sure to also check out 5m Friday every Friday, where I share my thoughts and opinions about different engineering topics. I'll c you around 😎
Stay tuned!
🚀💻🚀

Пікірлер: 34
@Marianodsr
@Marianodsr 3 жыл бұрын
3 videos? Feels like christmas! Love that you go beyond basics and provide useful examples
@SteveHook
@SteveHook 3 жыл бұрын
I hate basics. They’re not good for the whole picture 😉 Instead of Christmas, call it Content Overflow 😅😂
@puneethshetty4599
@puneethshetty4599 3 жыл бұрын
Keep up the great content and fabulous editing work :-)
@SteveHook
@SteveHook 3 жыл бұрын
Thanks a ton mate ☺️☺️😎
@thestardavid
@thestardavid 2 жыл бұрын
Excellent
@mangatram2766
@mangatram2766 3 жыл бұрын
not necessary but try adding "j < i+max && j < len(requests);" in the nested for loop. that will make the code work for odd number of max requests too!
@henriquealexandreh
@henriquealexandreh 3 жыл бұрын
This explanation is brilliant!
@SteveHook
@SteveHook 3 жыл бұрын
Thanks boss 😎
@budgetvloggertelugu2325
@budgetvloggertelugu2325 Жыл бұрын
loved it... thanks
@christanpauldsouza5401
@christanpauldsouza5401 3 жыл бұрын
you deserve a lot more views than this. This is awesome content:)
@SteveHook
@SteveHook 3 жыл бұрын
Thanks mate ☺️☺️
@mangatram2766
@mangatram2766 3 жыл бұрын
The best golang content.
@SteveHook
@SteveHook 3 жыл бұрын
Awww ☺️ thanks 😊
@bryanchoong5920
@bryanchoong5920 2 жыл бұрын
Very good video! Learn so much from your videos! Love it!
@SteveHook
@SteveHook 2 жыл бұрын
Thanks a lot Bryan 🖤
@surajdeshmukh2351
@surajdeshmukh2351 2 жыл бұрын
Waiting for more videos on golang
@ricardoruiz3248
@ricardoruiz3248 Жыл бұрын
DUDE! This is amazing, it is just what I was looking for. I was trying to find a way to use concurrency to read about 500k text files, then give them a format and upload them to a database in chunks of 10k minimum. I've been struggling with that and trying to use channels. You have saved me! Keep it up!!!
@SteveHook
@SteveHook Жыл бұрын
Glad this was a helpful example for you Ricardo 🤗
@emptytextfield
@emptytextfield 10 ай бұрын
great tutorial, but most efficient approach would be to not wait until all the `max` connections are done, but to send requests as soon as each connections are done
@3x10.8_ms
@3x10.8_ms 9 ай бұрын
gem
@dinub8414
@dinub8414 Жыл бұрын
Very good work, ser. Thorough both in the code and the presentation. You must have very generous patreons / be a big philantropist to offer this for free. Keep it up, respect!
@SteveHook
@SteveHook Жыл бұрын
Thanks a lot Dinu. Actually not so generous given my absence. Anyways merged your PR. Thanks for the contribution 🥹🥹
@dinub8414
@dinub8414 Жыл бұрын
@@SteveHook My pleasure, brother 🤓
@poweruser60
@poweruser60 Жыл бұрын
The limit-goroutines code, as presented in the video, generates a segmentation fault, but the code in the GitHub repository is correct. The problem is in the initial for loop at statement 12, which should be 'for i := 1; i
@saulramirez727
@saulramirez727 3 жыл бұрын
Dope
@erictronic
@erictronic 2 жыл бұрын
Pog
@MaheshKumar-ri7mh
@MaheshKumar-ri7mh 3 жыл бұрын
You are mad genius
@SteveHook
@SteveHook 3 жыл бұрын
😅 still working on it
@longfenglian8793
@longfenglian8793 2 жыл бұрын
3:26 can we just asign the i to a new value to capture it? like "a := i; requests[i] = func() { fmt.Println("request", a) };"
@SteveHook
@SteveHook 2 жыл бұрын
You definitely can, but that variable will get reset with every iteration. I guess we could’ve simply used 1 closure that gets appended to the requests slice
@surajdeshmukh2351
@surajdeshmukh2351 2 жыл бұрын
Steve do you have udemy courses? If not then it will be great if you create courses around golang. Your teaching is very excellent..I will buy your udemy courses
@SteveHook
@SteveHook 2 жыл бұрын
Will definitely do Suraj. Thanks a lot man 🥰
@matchshootercommunity114
@matchshootercommunity114 2 жыл бұрын
I can’t find tutorial for channel
@soandsa5925
@soandsa5925 2 ай бұрын
still taking doubts by any chance?
WaitGroups - Part 3 (Concurrency in Go #4)
27:40
Steve Hook
Рет қаралды 6 М.
WaitGroups - Part 1 (Concurrency in Go #2)
17:56
Steve Hook
Рет қаралды 11 М.
Mama vs Son vs Daddy 😭🤣
00:13
DADDYSON SHOW
Рет қаралды 46 МЛН
Why Is He Unhappy…?
00:26
Alan Chikin Chow
Рет қаралды 54 МЛН
Understanding Contexts in Go in 5(-ish?) Minutes
15:14
TutorialEdge
Рет қаралды 60 М.
Atomics - Part 2 - Go ASM (Go Assembly) (Concurrency in Go #6)
27:28
Google Data Center 360° Tour
8:29
Google Cloud Tech
Рет қаралды 5 МЛН
Introduction to Concurrency (Concurrency in Go #1)
27:54
Steve Hook
Рет қаралды 30 М.
The Story of Next.js
12:13
uidotdev
Рет қаралды 559 М.
I'M BACK. Now What?
10:20
Steve Hook
Рет қаралды 1,8 М.
What if my Intel CPU explodes??
14:20
Paul's Hardware
Рет қаралды 58 М.
8 Товаров с Алиэкспресс, о которых ты мог и не знать!
49:47
РасПаковка ДваПаковка
Рет қаралды 171 М.
Опасность фирменной зарядки Apple
0:57
SuperCrastan
Рет қаралды 11 МЛН
Что делать если в телефон попала вода?
0:17
Лена Тропоцел
Рет қаралды 3,2 МЛН
iPhone 15 Pro Max vs IPhone Xs Max  troll face speed test
0:33
Better Than Smart Phones☠️🤯 | #trollface
0:11
Not Sanu Moments
Рет қаралды 15 МЛН
Samsung laughing on iPhone #techbyakram
0:12
Tech by Akram
Рет қаралды 6 МЛН
My iPhone 15 pro max 😱🫣😂
0:21
Nadir Show
Рет қаралды 1,3 МЛН