System design URL shortener: Spring Boot 4.1.1, base62 ids, Redis cache-aside, Redis Lua token bucket, 24 tests and live transcripts
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
$ curl -si -X GET /Zq9Zq9
|
||||
HTTP/1.1 404
|
||||
{"detail":"no such code: Zq9Zq9","instance":"/Zq9Zq9","status":404,"title":"Not Found"}
|
||||
|
||||
$ curl -si -X GET /Zq9Zq9
|
||||
HTTP/1.1 404
|
||||
{"detail":"no such code: Zq9Zq9","instance":"/Zq9Zq9","status":404,"title":"Not Found"}
|
||||
|
||||
cache misses: before=2 after-first-404=3 after-second-404=3
|
||||
$ redis-cli GET url:Zq9Zq9 # the negative-cache marker
|
||||
-
|
||||
$ redis-cli TTL url:Zq9Zq9
|
||||
60
|
||||
Reference in New Issue
Block a user