Spring Cloud Gateway: Resilience, Security, and Observability
summary
A demo gateway routes /books to a backend book service and shows working examples of resilience, security and observability: 3 retries with 50–500ms backoff and retry-only-for-GETs; a Redis-backed rate limiter with replenish rate 10, burst capacity 20, 1 token per request; a Resilience4j circuit breaker using a 10-request sliding window, 50% failure threshold, 10s open and 5 allowed in half-open, 3s timeout; OAuth2/OpenID via Keycloak with Redis reactive sessions and token relay; Grafana stack (Loki, Tempo, Prometheus), Spring Boot Actuator and Micrometer tracing — all wired and demonstrated working.
AI-written summary · about
chapters (13)
- 0:00Introduction
- 0:58Why use Spring Cloud Gateway
- 3:28Reactive Spring
- 5:48Route Request
- 14:09Spring Boot Actuator
- 15:50Resilience
- 17:03Retry Pattern
- 18:45Backup Strategy
- 23:05Request Rate Limiting
- 23:58Request Rate Limiter
- 29:11Retry
- 29:21Circuit Breaker
- 37:21Security
related talks
43mSpring Cloud Gateway: Resilience and Security
51mIntroducing Spring Cloud Gateway
52mIntroduction to Spring Cloud
01h 11mSpring Cloud Gateway - Spencer Gibb, Sree Tummidi
54mSpring Cloud: API gateway upgrade & configuration in the cloud
46mCloud Native Java, part deux
01h 20mGetting Started with Spring Cloud
51mThe API Gateway is dead! Long live the API Gateway!
