shur.click

A SaaS URL Shortener built for high-throughput redirect traffic, featuring multi-tier caching and resilient uptime.

shur.click cover artwork

Overview

shur.click is a production-ready, highly available URL shortening platform. Built using Spring Boot and deployed on AWS ECS and RDS, it is engineered to sustain massive redirect traffic spikes without degrading performance. Multi-AZ database failover and CloudFront edge caching provide a resilient, globally distributed uptime layer.

A major focus was minimizing database strain during viral traffic events. By implementing a concurrent, non-blocking memory buffer for analytics and a multi-tier caching strategy (L1 Caffeine + L2 Redis), the system eliminates synchronous database queries from the critical read path and slashes write loads.

Stack

JavaSpring BootPostgreSQLRedisAWS ECSAWS RDSCloudFrontCaffeine Cache

Highlights

  • Architected a highly available URL shortening platform using Spring Boot and AWS ECS/RDS, designed to sustain high-throughput redirect traffic with Multi-AZ database failover and CloudFront edge caching.
  • Cut database write load for viral links by re-architecting the analytics pipeline to use non-blocking concurrent memory buffers, batching click events into a single database transaction on a 5-second interval.
  • Minimized redirect latency by implementing a multi-tier caching strategy with a bounded in-memory L1 cache (Caffeine) and a distributed Redis L2 cache, eliminating synchronous database queries from the critical read path.
  • Designed a highly scalable PostgreSQL data model partitioned to manage millions of active links and aggregate redirect analytics efficiently.
  • Engineered comprehensive observability metrics tracking cache hit ratios, redirect latency, and database connection pool health.
  • Implemented secure JWT-based authentication and a rate-limiting layer to prevent API abuse and ensure fair usage across tenants.