Examples
HTTP Server with Backpressure
Section titled “HTTP Server with Backpressure”See examples/http_server for a complete HTTP server that:
- Processes background jobs via the pool
- Returns 503 when overloaded
- Exposes metrics endpoint
- Handles graceful shutdown
cd examples/http_servergo run main.goBatch Processing
Section titled “Batch Processing”See examples/batch_processor for processing large batches with:
- Adaptive worker scaling
- Real-time progress tracking
- Throughput metrics
cd examples/batch_processorgo run main.go