Go Concurrency
A Go concurrency path with goroutines, channels, select, context cancellation and timeouts, mutexes, worker pools, pipelines, and HTTP/gRPC services.
A focused learning path on Go concurrency covering goroutines, channels, sync primitives, context, patterns, and performance for building highly concurrent systems in Go.
Complete "Go Goroutine Basics" by making A slice of squared values in the same order. produce [1, 4, 9, 16, 25] without hard-coding the sample.
Next step: Go Channel Communication
⏱ 0.5h
Solve "Go Channel Communication": turn A slice of transformed and filtered integers. into [2, 6, 10] and pass the provided samples.
Prerequisites: Go Goroutine Basics
Next step: Channel Select Multiplexing
⏱ 0.5h
Implement "Channel Select Multiplexing" so that First available message yields first ready channel, including the edge case in the second sample.
Prerequisites: Go Channel Communication
Next step: Go Context Cancellation
⏱ 0.5h
Complete "Go Context Cancellation" by making Results computed before cancellation, or an error if cancelled. produce all results (completed before timeout) without hard-coding the sample.
Prerequisites: Channel Select Multiplexing
Next step: Context with Timeout
⏱ 0.5h
Solve "Context with Timeout": turn A context that cancels on timeout into cancels after 5s and pass the provided samples.
Prerequisites: Go Context Cancellation
Next step: Go Mutex Synchronization
⏱ 0.5h
Implement "Go Mutex Synchronization" so that A consistent counter value reflecting all operations. yields Concurrent calls to increment, decrement, and value from multiple goroutines., including the edge case in the second sample.
Prerequisites: Context with Timeout
Next step: Goroutine Worker Pool
⏱ 0.5h
Complete "Goroutine Worker Pool" by making Processed results from workers produce 10 results without hard-coding the sample.
Prerequisites: Go Mutex Synchronization
Next step: Go Concurrent Pipeline
⏱ 0.5h
Solve "Go Concurrent Pipeline": turn A slice of squared prime numbers up to N. into [4, 9, 25, 49] and pass the provided samples.
Prerequisites: Goroutine Worker Pool
Next step: Defer for Resource Cleanup
⏱ 0.5h
Implement "Defer for Resource Cleanup" so that Guaranteed cleanup on exit yields file closed on return, including the edge case in the second sample.
Prerequisites: Go Concurrent Pipeline
Next step: Go HTTP Server with Middleware
⏱ 0.25h
Execute "Go HTTP Server with Middleware", change one constant, and describe how the output diverges from "Create a production-ready HTTP server in Go with middleware chaining, graceful shutdown,".
Prerequisites: Defer for Resource Cleanup
Next step: Go HTTP Client with Retry
⏱ 0.75h
Run the go snippet "Go HTTP Client with Retry", capture stdout, and show which line demonstrates the documented behavior: "Make HTTP requests in Go with retry logic, exponential backoff, context-based timeouts,".
Prerequisites: Go HTTP Server with Middleware
Next step: Go gRPC Server Setup
⏱ 0.75h
Adapt "Go gRPC Server Setup" to a second input and compare the new output with the behavior described in "Create a gRPC server in Go with protobuf service definitions, interceptor middleware for".
Prerequisites: Go HTTP Client with Retry
Next step: Capstone: Go Concurrency
⏱ 0.75h
Deliver the "Build a Backpressure Queue Service" blueprint with "Bounded queue" working and "Watermark monitor" recorded as evidence.
Prerequisites: Go gRPC Server Setup
Next step: Run the capstone's tests, publish the repository, and demo it to a reviewer.
⏱ 4h