Ep9 Send Email Notifications in Goroutines (WaitGroup and Semaphores in Golang)

Published: 02 September 2024
on channel: david hwang
549
37

Now that we have the gRPC implemementations to list and update notification events, let's create an ecomm-notification microservice to send email notification for each of the events.

github.com/dhij/ecomm

blog post on keeping reference to the variable in a loop fixed in Go 1.22: https://go.dev/blog/loopvar-preview

0:00 intro and recap
1:56 loop every 30 seconds with a ticker
3:23 goroutines and a common mistake
4:33 add waitGroup and semaphores
6:45 add methods to send email and update db accordingly
11:53 add the ecomm-notification main file and run the server
14:13 add a quick fix for the demo
15:21 bring up services and test endpoints


Watch video Ep9 Send Email Notifications in Goroutines (WaitGroup and Semaphores in Golang) online without registration, duration hours minute second in high quality. This video was added by user david hwang 02 September 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 549 once and liked it 37 people.