High-Performance URL Shortener
Go, PostgreSQL, Redis, Docker, GitHub Actions
A production-style URL shortening service with clean API boundaries, persistent storage and automated testing.
- REST API with Base62 short codes, custom aliases, expiry and idempotent creation
- PostgreSQL as system of record with database migrations
- Redis cache-aside reads (fail-open) and Redis rate limiting per IP
- Redis Streams worker for asynchronous click analytics with idempotency dedupe
- 3 stateless API replicas behind Nginx; health, readiness and Prometheus metrics
- CI pipeline: go vet, tests, builds, govulncheck and Trivy container scan