Concurrency in Go (Golang)

Learn the Why's and How's of concurrency in Go.

  • 0.0 (0 Reviews)
  • 0 Students
  • 77 Lessons
  • Deepak kumar Gunjetti

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?

See more

FAQ

FAQ area empty

Course curriculum

14 chương 77 bài học 5 giờ 7 bài học thử miễn phí
Chương 1 Introduction
Chương 2 Goroutines
Chương 3 Deep Dive - Go Scheduler
  • 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
  • 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
  • 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
  • Select 4:14
  • Exercise - Select 2:28
  • Exercise - Timeout 1:43
  • Exercise - Non-blocking communication 1:58
Chương 7 Sync Package
  • 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
  • Race Detector 1:30
  • Exercise - Race 5:12
Chương 9 Web Crawler
  • Web Crawler - Sequential 2:30
  • Web Crawler - Concurrent 7:30
Chương 10 Concurrency Patterns
  • 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
  • Image Processing Sequential 5:31
  • Image Processing Pipeline 16:10
Chương 12 Context Package
  • 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
  • HTTP Server Timeouts with Context Package 12:41
Chương 14 Bonus Section: Interface
  • 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.

Instructor

...
Deepak kumar Gunjetti

0.0

  • ... 0 Student
  • ... 1 Course
  • ... 0 review

View Details

Reviews

Rate this course :

Remove all