API Gateway, Spring Cloud Gateway, Routing, Rate Limiting and Request Filtering
Learn API Gateway, Spring Cloud Gateway, Routing, Rate Limiting and Request Filtering (Phase 4 · Service Discovery and API Gateway (Core), Microservices) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
What is an API gateway? • An API gateway is the single entry point for clients. It handles cross-cutting concerns once: routing to services, authentication (validate JWT), rate limiting , TLS termination , CORS, request/response transformation, logging/tracing, caching, and sometimes API composition or protocol translation. It hides internal topology: clients call api.javaschoollab.com/courses , not ten services. • Variants: one gateway for all, or Backend for Frontend (a gateway per client type: web, mobile). Risks : single point of failure/bottleneck (run several, keep it stateless),...