"The API Gateway pattern is the Facade for your microservices."
-- Chris Richardson, Microservices Patterns (2018)
com.byld.gateway
/config RouteConfig, SecurityConfig, RateLimiterConfig, CorsConfig
/filter JwtValidationFilter, RateLimitFilter, RequestEnrichFilter, AccessLogFilter
/security JwtTokenValidator, RsaKeyProvider
/resilience CircuitBreakerConfig, FallbackController
/health ServiceHealthAggregator
Key Decisions:
1. No business logic in gateway (Humble Object)
2. JWT validation only, not token issuance (byld-identity)
3. Redis for rate limiting (shared across pods)
4. Per-integration resilience configs (not one-size-fits-all)
5. All headers stripped before forwarding to client
6. Gateway is stateless (horizontally scalable)
Infrastructure
Redis: rate limit counters, session cache
No database (stateless)
Pods: min 3 (HA), max 10
Observability
Micrometer: latency, error rate, RPS
X-Ray: distributed trace propagation
Structured JSON access logs (ELK)