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
Executable
+8
View File
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
# Starts the app on :8080 against PostgreSQL (localhost:5433, db urlshort) and Redis (localhost:6379).
# -Duser.timezone=UTC matters: the PostgreSQL JDBC driver sends the JVM's zone to the server, and a legacy
# zone name such as Asia/Calcutta can be rejected ("invalid value for parameter TimeZone").
set -euo pipefail
cd "$(dirname "$0")/.."
mvn -q -DskipTests package
exec java -Duser.timezone=UTC -jar target/system-design-url-shortener-1.0.0.jar "$@"