High-Throughput gRPC Event Gateway
A low-latency telemetry ingestion service written in Go. Implements custom worker pool patterns, binary Protobuf serialization, and zero-allocation buffer pools to consume, validate, and broadcast incoming metric streams into partitioned Redis Stream queues.
Architecture Highlights
- ▸ Bounded Goroutine worker pools preventing memory bloat under load spikes
- ▸ Bidirectional gRPC streaming with protobuf payload schema validation
- ▸ Atomic backpressure monitoring and graceful degradation triggers
type Dispatcher struct {
workers chan chan Event
workerPool chan chan Event
maxWorkers int
}
// Non-blocking channel distribution
select {
case worker <- event:
default:
metrics.DroppedEvents.Inc()
}