Service Discovery & API Gateway
4 Topics
1
Service Discovery — Why Hardcoded URLs Don't Work at Scale
Solving auto-scaling node IP shifts and tracking healthy application nodes.
Service resolution architectures. Expect questions comparing server-side vs client-side service discovery models, DNS caching traps in the JVM, and handling node IP shifts in cloud environments.
2
Netflix Eureka — Registering and Discovering Services
Eureka Server configuration, client heartbeats sync, and client-side load balancing (LoadBalancer).
Eureka architecture details. Expect questions on Eureka server clustering, self-preservation mode mechanics, registry caching loops, and heartbeat intervals tuning.
3
Spring Cloud Gateway — Dynamic Routing and Filters
Defining route predicates, rewrite paths, and injecting custom global headers.
API gateway design. Expect questions on WebFlux reactive models vs thread-blocking models, Route predicates logic, rewriting paths, and implementing custom GatewayFilters.
4
Rate Limiting and Circuit Breakers at the Gateway
Configuring Redis rate limiters and Hystrix/Resilience4j boundaries at entryways.
Edge resilience architectures. Expect questions on Token Bucket algorithms, configuring Redis rate limiters, fallback routing at the gateway, and circuit breakers setups.