← Course map

GO LEARNING PATH · 6 LESSONS

Patterns: concurrent Go

Worker pools, fan-in, cancellation, ownership, retries and circuit breakers.

  1. Worker pool: bound simultaneous work

    Control active work instead of starting one goroutine for every input.

    3 min · Worked lesson

  2. Fan-out and fan-in: merge without assuming order

    Coordinate multiple producers and one result stream.

    3 min · Worked lesson

  3. Cancellation: propagate an exit path through every handoff

    Make a producer stop when its consumer no longer needs results.

    3 min · Worked lesson

  4. Single owner: serialize state through messages

    Use one goroutine to own mutable state and define request completion.

    3 min · Worked lesson

  5. Retry: bounded attempts and idempotent effects

    Retry transient failures within one deadline without multiplying side effects.

    3 min · Worked lesson

  6. Circuit breaker: stop calls while a dependency recovers

    Separate retry policy from failure isolation and a controlled recovery probe.

    3 min · Worked lesson