Course Overview
Questions that comes to all Developers is whether they are utilising the available Computing resource efficiently?
Course Overview
The course could be divided into five parts.
Concurrency Primitives
Deep Dive into Concurrency Primitives
Concurrency Patterns
Context Package
Bonus Section - Interfaces
In the course we try to answer these questions.
Concurrency Primitives
What are the limitations of Threads?
What are advantages of goroutines over OS threads?
How do we avoid race condition?
How Channels are used to communicate data?
How do we implement timeout and non-blocking communication?
When do we use mutex and channels?
How to synchronise execution of goroutines?
How to detect race condition in Go?
Deep Dives into Concurrency Primitives
How Go scheduler works?
How does context switching works?
How channel send and receive works underneath?
Concurrency Patterns
How to construct streaming pipelines with Goroutines and Channels?
How to Fan-out and Fan-in computationally intensive stages?
How do we avoid Goroutine Leaks?
Context Package
How we can propagate request scoped data and cancellation signal across API boundaries?
Coding Exercises
Each concept is followed by a Coding Exercise.
Exercises blueprint are shared on Github.
Sample Applications
We will build
Blueprint of web crawler.
Image processing pipeline.
HTTP Server Timeouts with Context Package.
Bonus Section - Interfaces
How to define common behaviour between different objects as abstract type?
How Interface provides an abstraction for higher level functions?
FAQ
FAQ area empty
Course curriculum
Chương 1 Introduction 4 bài · 25 phút
Chương 2 Goroutines 9 bài · 25 phút
-
Goroutines 4:37
- Clone Coding Exercise Github Repository Học thử
-
Exercise-Hello 4:25
- Exercise-ClientServer Học thử 4:44
-
WaitGroups 5:28
- Exercise-WaitGroup Học thử 1:48
-
Goroutines & Closures 0:48
-
Exercise-Closure 1:37
-
Exercise-Closure02 2:02
Chương 3 Deep Dive - Go Scheduler 4 bài · 19 phút
-
Deep Dive - Go Scheduler 6:53
-
Deep Dive - Go Scheduler - Context Switching due to synchronous system call 3:16
-
Deep Dive - Go Scheduler - Context Switching due to Asynchronous system call 5:40
-
Deep Dive - Go Scheduler - Work Stealing 3:14
Chương 4 Channels 9 bài · 19 phút
-
Channels 3:39
-
Exercise - Channels 1:22
-
Range, Buffered Channels 2:06
-
Exercise - Range 1:41
-
Exercise - Buffered Channel 1:24
-
Channel Direction 1:05
-
Exercise - Channel Direction 3:35
-
Channel Ownership 1:43
-
Exercise - Channel Ownership 2:18
Chương 5 Deep Dive - Channels 6 bài · 15 phút
-
Deep Dive - Channels 3:01
-
Deep Dive - Channels - Send and Recieve 2:30
-
Deep Dive - Channels - Buffer full 3:00
-
Deep Dive - Channels - Buffer empty 3:01
-
Deep Dive - Channels - Unbuffer channel 2:01
-
Deep Dive - Channels - Summary 1:11
Chương 6 Select 4 bài · 10 phút
-
Select 4:14
-
Exercise - Select 2:28
-
Exercise - Timeout 1:43
-
Exercise - Non-blocking communication 1:58
Chương 7 Sync Package 11 bài · 29 phút
-
Mutex 2:54
-
Exercise - Mutex 3:13
-
Atomic 0:46
-
Exercise - Atomic 2:22
-
Conditional Variable 5:51
-
Exercise - Conditional Variable - Signal 2:06
-
Exercise - Conditional Variable - Broadcast 2:55
-
Sync Once 0:46
-
Exercise - Sync Once 3:17
-
Sync Pool 1:14
-
Exercise - Sync Pool 3:54
Chương 8 Race Detector 2 bài · 7 phút
-
Race Detector 1:30
-
Exercise - Race 5:12
Chương 9 Web Crawler 2 bài · 10 phút
-
Web Crawler - Sequential 2:30
-
Web Crawler - Concurrent 7:30
Chương 10 Concurrency Patterns 6 bài · 26 phút
-
Pipelines 4:29
-
Exercise - Pipelines 5:41
-
Fan-out & Fan-in 3:09
-
Exercise - Fan-out & Fan-in 5:05
-
Cancelling Goroutines 3:10
-
Exercise - Cancelling Goroutines 4:51
Chương 11 Image Processing Pipeline 2 bài · 22 phút
-
Image Processing Sequential 5:31
-
Image Processing Pipeline 16:10
Chương 12 Context Package 8 bài · 36 phút
-
Context Package 5:14
-
Context Package for Cancellation 8:15
-
Context Package as Data bag 1:57
-
Exercise - WithCancel 4:21
-
Exercise - WithDeadline 4:52
-
Exercise - WithTimeout 2:36
-
Exercise - WithValue 4:28
-
Context Package - Go Idioms 4:44
Chương 13 HTTP Server Timeouts with Context Package 1 bài · 13 phút
-
HTTP Server Timeouts with Context Package 12:41
Chương 14 Bonus Section: Interface 9 bài · 43 phút
-
Interface 12:20
-
Interface-implicit 2:31
-
Interfaces from standard library 5:24
-
Exercise io.Writer interface 2:20
-
Exercise Stringer interface 2:10
-
Interface Satisfaction 4:15
-
Type Assertion 4:57
-
Exercise Type Assertion 5:47
-
Empty Interface 3:21
Requirment
-
Basic knowledge of Go Programming Language like loops, functions, methods.
-
Installation of Go compiler and any IDE on the laptop.
Outcomes
-
How to spin Goroutines and communicate data between them.
-
How to avoid Race conditions and Deadlocks.
-
How to synchronize the execution of Goroutines.
-
How Go Scheduler works.
-
How to build streaming pipelines with Goroutines and Channels.
-
How to propagate data across API boundary.
0 Student
1 Course
0 review