Engineering Dispatches · Vancouver, Canada

@madmmas
· blog

$./madmmas--topicsgo · k8s-operators · aws · ai-systems · java-internals▋

Deep technical writing on Go concurrency, Kubernetes operators, AWS architecture, and AI/ML systems. Production-first. No tutorials, no fluff.

15+yrs experience
8OSS projects
6×AWS certified
456+LeetCode
Latest Dispatches

Building Concurrent Ai Pipelines In Go · Part 20

Part 20 - Observability: Seeing What the Pipeline Is Actually Doing

A pipeline that cannot be observed cannot be operated. Part 20 adds throughput, latency percentiles, and error breakdown by type — the three metrics that tell you whether the pipeline is healthy, where it is slow, and what is failing. This is the foundation for Prometheus and OpenTelemetry integration.

Building Concurrent Ai Pipelines In Go · Part 19

Part 19 - Concurrent RAG Pipeline: Putting It All Together

The flagship of Arc 2: a full concurrent RAG pipeline — chunk, embed, generate — where every stage from Part 11, every resilience pattern from Parts 13-15, and every flow control mechanism from Parts 16-18 comes together in one coherent system.

Building Concurrent Ai Pipelines In Go · Part 18

Part 18 - Goroutine Leaks: Finding and Fixing Stuck Goroutines

A goroutine that starts and never exits is a leak. Unlike memory leaks, goroutine leaks are invisible — no crash, no error, just a process that slowly accumulates blocked goroutines until memory and scheduler overhead degrade everything. This part shows how to detect them, reproduce them intentionally, and fix them.

Building Concurrent Ai Pipelines In Go · Part 17

Part 17 - Token Streaming: Processing LLM Output as It Arrives

Every previous part treated an LLM response as a single value that arrives when the call completes. Real LLM APIs stream tokens incrementally — you receive the first word in hundreds of milliseconds and the rest follow one by one. A channel between producer and consumer is the natural Go model for this.

Building Concurrent Ai Pipelines In Go · Part 16

Part 16 - Backpressure: Letting the Queue Push Back

When a producer generates work faster than consumers can process it, the queue grows without bound. A bounded channel is the fix — when it fills, the producer blocks automatically. No explicit signal, no coordination: the channel capacity is the backpressure contract.

// View All Posts →