Explore a practical guide to preventing deadlocks and leaks in Go through this GopherCon 2015 talk by Richard Fliam. Learn five battle-tested guidelines developed while creating Pillar, a high-performance Go application processing 15 gigabits per second and serving millions of users. Discover how to effectively use Communicating Sequential Processes (CSP) in Go, simplify code, and avoid common pitfalls. Gain insights into topics such as concurrent paradigms, CSP design tips, flow of data, control flow, manager-driven workflows, and explicit cancellation. Examine code snippets and real-world examples, including MPEG TS muxing and handling program map tables. Master techniques for preventing memory leaks, proper use of the context library, and best practices for working with tickers and infinite loops.
A Practical Guide to Preventing Deadlocks and Leaks in Go