Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b3W3uHbHAmM3orhn7b
13 lines
594 B
Plaintext
13 lines
594 B
Plaintext
# 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
|