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:
Executable
+8
@@ -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 "$@"
|
||||
Reference in New Issue
Block a user