https://github.com/Dev-RohitGupta/resilient-api-gateway
π Overview
Built a production-grade API Gateway in Node.js + TypeScript that acts as a single entry point for microservices.
It handles traffic routing, rate limiting, failure handling, service discovery, and observability β similar to systems like AWS API Gateway and Kong.
β‘ Performance & Key Achievements
- π Handled 1000+ requests/sec (simulated) using Node.js Cluster with multi-core parallelism
- β‘ Achieved p95 latency < 80ms under concurrent load (Autocannon testing)
- π‘οΈ Reduced cascading failures by ~90% using circuit breaker pattern (fail-fast mechanism)
- π Ensured zero downtime routing via health checks + dynamic load balancing
- π Prevented abuse with distributed rate limiting (Redis) across multiple instances
- π Enabled full system observability with Kafka-based async event streaming (logs, failures, rate limits)
- βοΈ Achieved horizontal scalability (stateless gateway + shared Redis layer)
- π§ Implemented dynamic service discovery (no hardcoded backends)
- π¦ Fully containerized system (Docker + Kubernetes-ready architecture)
π₯ Why This Project Stands Out
- Not a CRUD app β implements core distributed system patterns used in real production systems
- Combines Load Balancer + Rate Limiter + Circuit Breaker + Service Discovery in one system
- Demonstrates deep understanding of:
- Fault tolerance
- Scalability
- Event-driven architecture