Back to Gotraining

README

topics/go/concurrency/patterns/README.md

latest1.4 KB
Original Source

Concurrency Patterns

There are lots of different patterns we can create with goroutines and channels. Two interesting patterns are resource pooling and concurrent searching.

Notes

  • The work code provides a pattern for giving work to a set number of goroutines without losing the guarantee.
  • The resource pooling code provides a pattern for managing resources that goroutines may need to acquire and release.
  • The search code provides a pattern for using multiple goroutines to perform concurrent work.

Concurrency patterns
Go Concurrency Patterns: Pipelines and cancellation - Sameer Ajmani
Go Concurrency Patterns - Rob Pike
Go Concurrency Patterns: Context - Sameer Ajmani
Advanced Go Concurrency Patterns - Sameer Ajmani
Go: code that grows with grace - Andrew Gerrand

Functional Options : type DialOption func(*dialOptions)
https://github.com/grpc/grpc-go/blob/master/clientconn.go

Code Review

Chat
Logger
Task
Pooling
Kit


All material is licensed under the Apache License Version 2.0, January 2004.