liveBook · Manning

Fan-in

Fan-in is a pattern in which outputs from multiple concurrent or upstream sources converge into a single stream, task, or operation.

How 2 Manning books explain it

Distributed Machine Learning Patterns

A workflow pattern that combines results from multiple upstream processing branches before downstream processing.

How it is used
Combines outputs from multiple model-serving branches in complex machine-learning workflows.
How deep it goes
Defines fan-in through an aggregation workflow and discusses independence, ordering, and ensemble-training limitations.
Examples
Uses YouTube-8M entity tagging with selected models whose serving predictions are aggregated.
What you can do after
Apply it to join independent, order-independent branch results in a machine-learning workflow.

Read how Distributed Machine Learning Patterns explains fan-in →

Learn Concurrent Programming with Go

A fan-in pattern merges values from multiple concurrent sources into a single stream.

How it is used
Connects multiple concurrent pipeline outputs to one downstream input while preserving independently pluggable stages.
How deep it goes
Explains fixed-source select fan-in and dynamic-source forwarding, including cancellation and coordinated channel closure.
Examples
Uses an accounting stream and a web-page pipeline with twenty downloaders feeding extractWords through FanIn.
What you can do after
Build it from scratch with forwarding goroutines, a shared output channel, cancellation, and WaitGroup-based closure.

Read how Learn Concurrent Programming with Go explains fan-in →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.