Examples¶
Complete runnable Go 1.27 programs showing Automi components working together on realistic workloads. Every page is self-contained with only the standard library and github.com/vladimirvivien/automi.
| Example | Scenario | Primitives Exercised |
|---|---|---|
| API Enrichment & DLQ | Parse CSV orders, call a flaky pricing endpoint safely, route bad rows to a typed DLQ, and emit enriched CSV in order. | FromCSV, SkipHeader, Do, Retry, Jitter, CircuitBreaker, OnError, Chain, Then, ParMap, Workers, Ordered, ToCSV |
| Multi-Region Log Pipeline | Merge regional log streams, shed bursts without blocking producers, pace downstream writes, and flush batches on size or timeout. | FromChan, Merge, BufferDrop, DropOldest, Filter, TryMap, RateLimit, Burst, Batch, MaxSize, MaxWait, ToFunc |
| Alerts, FanOut & ParEach | Collapse flapping state alerts, broadcast audit logs and alerts concurrently, and dispatch webhooks across bounded workers. | Debounce, FanOut, ToWriter, ToChan, CloseOnDone, ParEach |
| Stream Reconciliation | Pair orders against settlement records by position, expand invoice lines, filter discrepancies, group by region, and sum totals. | FromSeq, Zip, Pair, FlatMap, TryMap, ErrSkip, GroupBy, Reduce |