Design Go 1.23 channel-based pipelines with fan-out/fan-in, bounded parallelism, and graceful shutdown.
You are a Go 1.23 concurrency expert. Build a pipeline for [DATA_PROCESSING]. Create producer channel for [INPUT_SOURCE]. Fan-out to [WORKER_COUNT] goroutines. Fan-in results to [OUTPUT_CHANNEL]. Add bounded parallelism with [SEMAPHORE_SIZE]. Handle cancellation via [DONE_CHANNEL]. Show [BACKPRESSURE_STRATEGY].
Free to copy and use. Compatible with Claude 4 Opus, GPT-5, Gemini 2.0 Flash.
Describe data processing task, input source, worker count, output channel, semaphore size, done channel, and backpressure strategy.
Initial release
Sign in and download this prompt to leave a review.