Project Alpha

Project Alpha
Go Redis Docker gRPC

Project Alpha is a lightweight API gateway designed to sit at the edge of a microservice cluster and handle authentication, rate limiting, and request routing. Built entirely in Go, it leverages goroutines and channels to process tens of thousands of concurrent requests with minimal latency overhead — typically under 2ms at the 99th percentile.

The key technical decision was to use Redis Streams as the backbone for asynchronous event propagation between the gateway and downstream services. Rather than polling or maintaining persistent connections to every microservice, the gateway publishes enriched request envelopes to Redis and consumes response envelopes via consumer groups. This decoupling made it straightforward to add observability hooks and replay failed requests without touching service code.

In production the gateway serves as the single ingress point for a platform processing over 3 million API calls per day. The Redis-backed session store reduced authentication latency by 60% compared to the previous PostgreSQL-based solution, and the gRPC transport cut inter-service payload size by roughly 40% against the JSON REST baseline.

← All Projects