Skip to content

Components

Automi organizes streaming primitives into eight focused guides inside package automi. Pick a category below to see exact signatures, defaults, cancellation rules, and runnable examples.

Automi pipeline architecture flowing from sources through filters, parallel workers, and timed batching into sinks

Component Categories

Guide Primitives Covered Use Case End-to-End Example
Sources & I/O From, FromSlice, FromChan, FromSeq, FromSeq2, FromFunc, FromCSV, FromLines, FromReader Feed slices, channels, iterators, readers, CSV rows, and pull functions into a Stream[T]. API Enrichment
Synchronous Transforms Filter, Take, Drop, Tap, Map, TryMap, FlatMap, Through Transform, filter, expand, and inspect items inline with zero extra goroutines. Stream Reconciliation
Steps & Resilience Step, Do, Then, Chain, Retry, CircuitBreaker, OnError Compose reusable fallible pipelines with retries, circuit breaking, and dead-letter handling. API Enrichment & DLQ
Bounded Concurrency ParMap, Workers, Ordered, BufferSize, ParEach Scale CPU or I/O stages across bounded worker pools and run concurrent side-effect terminals. Alerts, FanOut & ParEach
Batching & Flow Control Batch, MaxSize, MaxWait, Buffer, BufferDrop, RateLimit, Debounce Group batches, shed bursts cleanly, pace emissions, and collapse noisy updates. Multi-Region Log Pipeline
Stream Combinators Concat, Merge, Zip, Pair, FanOut Combine multiple streams sequentially, concurrently, or in lockstep, or broadcast to multiple sinks. Stream Reconciliation
Sinks & Terminals ToSlice, ToChan, ToFunc, ToWriter, ToCSV, Discard, Into, Collect, Each, ParEach, Reduce, GroupBy, All Drive execution and write stream output to Go targets and writers. Alerts, FanOut & ParEach
Custom Sources & Sinks Source[T], Sink[T], SinkFunc[T], FromFunc Integrate external brokers, RPC streams, databases, and custom endpoints without adding dependencies. —