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:
co-authored by
Claude Sonnet 5.5
parent
7211b0fb80
commit
32086c1f5b
@@ -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
|
||||
Reference in New Issue
Block a user