
Shorty - URL Shortener
Shorty is a powerful URL shortening service that transforms lengthy, complex URLs into concise, manageable links. Built with Go for maximum performance, it provides reliable URL redirection with advanced caching and filtering mechanisms to ensure optimal efficiency, even under high traffic conditions.
Features
- URL Shortening: Transforms long URLs into compact, easy-to-share links while performing connection, existence, and cyclic verification tests.
- Unique ID Generation: Implements auto-increment primary keys in MySQL with base-62 conversion for generating distinct shortened URLs.
- Advanced Redirection: Uses 302 redirects for analytics accuracy with multilayered caching for improved performance.
- Cache Protection: Implements bloom filters to prevent cache penetration and uses singleflight to mitigate cache breakdown.
- Performance Optimization: Separation of read and write operations for enhanced efficiency in this read-heavy service.
Stack
• Backend & API
- Golang - A progressive JavaScript framework for building user interfaces.
- Go-Zero - RESTful API framework for structured service development.