The API Gateway is dead! Long live the API Gateway!
summary
A lightweight gateway called Spring Cloud Gateway is built on Spring 5, WebFlux and project reactor and it routes with Java-fluent predicates and ordered filters (path/host/header, rewrite). Benchmarks show near-zero overhead vs Netty but blocking calls like default logging can still stall the event loop. Features implemented and working: Hystrix circuit breaker with 1s timeout, a Redis rate limiter (example: 1 request/sec returning 429), and WebSocket support proxying bidirectionally.
AI-written summary · about
chapters (22)
- 0:00Intro
- 1:00What is an API Gateway
- 2:00API Gateway Uses
- 3:56API Gateway Categories
- 6:42Netflixs API Gateway
- 10:19Spring Cloud Gateway
- 11:24Project Reactor
- 14:27Spring Web Flex
- 15:33Route predicate mapping
- 16:45Route predicate examples
- 19:18Rewrite path
- 20:15Spaghetti code
- 20:32Filter chain
- 21:21Example route
- 22:20Java configuration
- 22:57Josh Long imitation
- 27:23HTTP Bin
- 32:04HTTP
- 35:54Rewriting Routes
- 38:39History
- 40:59HTTP Delay
- 47:34WebSocket
related talks
01h 11mSpring Cloud Gateway - Spencer Gibb, Sree Tummidi
43mSpring Cloud Gateway: Resilience and Security
51mIntroducing Spring Cloud Gateway
51mSingle Entry Point or Single Point of Failure: The Path to a Non-blocking API Gateway
54mSpring Cloud: API gateway upgrade & configuration in the cloud
47mSpring Cloud Gateway: Resilience, Security, and Observability
26mAPI Gateway, A Success Story
53mSpring Cloud Gateway Recipes
