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:
2026-10-22 08:13:35 +00:00
commit aa61ed8786
51 changed files with 1717 additions and 0 deletions
+13
View File
@@ -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