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
+12
View File
@@ -0,0 +1,12 @@
# same key, alternating between two gateway instances that share Redis
carol #1 via :8081 HTTP/1.1 200 X-RateLimit-Remaining: 4
carol #2 via :8080 HTTP/1.1 200 X-RateLimit-Remaining: 3
carol #3 via :8081 HTTP/1.1 200 X-RateLimit-Remaining: 2
carol #4 via :8080 HTTP/1.1 200 X-RateLimit-Remaining: 1
carol #5 via :8081 HTTP/1.1 200 X-RateLimit-Remaining: 0
carol #6 via :8080 HTTP/1.1 429 X-RateLimit-Remaining: 0
# what Redis holds
$ redis-cli --scan
carol
$ redis-cli pttl carol (time to live in ms; the bucket expires once it would be full again)
positive TTL, as expected