Scaling APIs With Spring Cloud
summary
Concrete configuration and demos show Spring Cloud Gateway plus specific libraries solving real problems: Bucket4J token-bucket (1 token added every 5s, excess → 429) enforces rate limits, Resilience4j circuit-breaker with fallback → 200 prevents cascade, and retry uses spring-retry/reactor-retry with a three-attempt demo that succeeds on the third try. Scale-to-zero uses KEDA with a Gateway-side gRPC probe to wake apps. Gateway handles OAuth2 token relay (Azure AD), injects JWT-derived email into a cookie for Dynatrace correlation, and routes UI to APIs so clients see a single host.
AI-written summary · about
chapters (17)
- 0:00Introduction and speakers
- 1:05What are APIs and their types
- 2:12Protecting APIs with Spring Cloud Gateway
- 5:28Rate limiting with token bucket
- 8:10Demo rate limiting
- 10:19Circuit breaker for resilience
- 11:23Demo circuit breaker
- 13:14Retry mechanism for failures
- 14:18Demo retry mechanism
- 15:47Scale to zero with Kada
- 24:09Scaling teams with Gateway
- 27:41Case study by Luke Shannon
- 31:20Authentication with Azure AD
- 34:17Routing and API versioning
- 37:09Observability with DinoTrace
- 40:42MVC Gateway vs Reactor Gateway
- 41:24Q&A
