High-Performance Link Management Engine
URL Shortener REST API
High-throughput URL shortening and redirection REST API achieving sub-45ms response times using Redis in-memory caching and relational persistence.
45 ms redirect latency
JWT & OAuth2 secured
100% REST compliant
Architecture & System Implementation
Architected and delivered a robust link management backend during a 1-month internship at K. J. Somaiya Institute of Technology. Designed clean RESTful endpoints to generate, validate, track, and redirect short links. Secured access with Spring Security, JWT authentication, and OAuth2, persisting link metadata in MySQL via Hibernate ORM and implementing Redis cache warming and scheduled purge jobs.
Core Features & Capabilities
- RESTful API design with comprehensive request validation and error handling
- Sub-45ms redirection latency achieved through Redis in-memory caching
- Authentication and authorization secured with Spring Security, JWT, and OAuth2
- Relational data persistence and mapping using Hibernate ORM and MySQL
- Automated cleanup of expired links using Spring Scheduled cron jobs
Engineering Contributions & Optimizations
- Engineered URL encoding algorithms generating collision-resistant unique tokens
- Implemented cache-aside strategy with Redis to offload 90%+ read traffic from MySQL
- Designed database schema with indexing on slug lookups for fast retrieval
Technologies & Libraries
JavaSpring BootMySQLHibernateRedisSpring SecurityJWTOAuth2
REST API Endpoint
200 OKThis project is programmatically queryable via our public JSON API:
curl -s https://rajatsurana.vercel.app/api/projects/url-shortener