API Gateway & Microservices
Feature-rich API edge layer supporting JWT auth, request shaping, circuit breakers, and service discovery. Exposes operational dashboards powered by Prometheus and Grafana.
GogRPCPostgreSQLRedisPrometheusGrafana

API Gateway & Microservices
A performant gateway that orchestrates traffic across a constellation of microservices with strong governance.
Features
- Authenticates requests using JWT tokens and enforces role policies.
- Applies rate limiting, quotas, and circuit-breaking at the edge.
- Handles request/response transformations (REST ↔︎ gRPC) with schema validation.
- Streams metrics, traces, and structured logs into Prometheus and Grafana.
Implementation Notes
- Built in Go for lightweight concurrency and minimal latency overhead.
- Service discovery plugs into Consul; routing tables are cached locally with TTL invalidation.
- A Lua scripting layer enables dynamic policy adjustments without redeploying.
Setup
- Copy toterminal
config.example.yamland configure upstream services.terminalconfig.yaml - Run to start the gateway locally with hot reload.terminal
make run - Use the bundled CLI to register upstream services and configure rate-limiting rules.
Monitoring
Dashboards include latency histograms, request distribution, and breaker trip counts. Alerts fire through PagerDuty when error budgets are threatened.
Project Links
Highlights
- JWT authentication and authz policies
- Dynamic routing and request transformation
- Rate limiting, quotas, and circuit breakers
- Service discovery integrations
- Observability dashboards
Key Challenge
Kept p99 latency under 50ms with adaptive caching and parallel gRPC fan-out.