Add gateway-mvc: Spring Cloud Gateway Server MVC 5.1 on Boot 4.2.0 + virtual threads, retry, Redis rate limiting

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b3W3uHbHAmM3orhn7b
This commit is contained in:
asmhatre
2026-11-26 00:55:16 +05:30
co-authored by Claude Sonnet 5.5
parent 7211b0fb80
commit 32086c1f5b
19 changed files with 821 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
# 5 tokens per 10 seconds per X-Api-Key, Caffeine store
alice #1 HTTP/1.1 200 X-RateLimit-Remaining: 4
alice #2 HTTP/1.1 200 X-RateLimit-Remaining: 3
alice #3 HTTP/1.1 200 X-RateLimit-Remaining: 2
alice #4 HTTP/1.1 200 X-RateLimit-Remaining: 1
alice #5 HTTP/1.1 200 X-RateLimit-Remaining: 0
alice #6 HTTP/1.1 429 X-RateLimit-Remaining: 0
alice #7 HTTP/1.1 429 X-RateLimit-Remaining: 0
# a different key has its own bucket
bob #1 HTTP/1.1 200 X-RateLimit-Remaining: 4
# no X-Api-Key: the key resolver returns null
$ curl -i localhost:8080/api/limited
HTTP/1.1 403
# wait 11 seconds: the bucket refills
alice #8 HTTP/1.1 200 X-RateLimit-Remaining: 4