url-shortener
url-shortener is a high-performance URL shortening service built with Rust using the Axum async web framework. It delivers fast, secure, and scalable link management with native support for deep linking tailored to mobile platforms. The architecture integrates PostgreSQL for persistent storage and Redis for high-speed caching using MessagePack serialization to optimize memory usage and reduce payload sizes by 30-50 percent compared to JSON. Security is enforced through JWT-based authentication and rate limiting, while unique short keys are generated using a hybrid Base62 encoding and random prefix-suffix strategy to prevent sequential guessing and ensure collision-free IDs. Key features include intelligent platform detection that redirects iOS and Android users to custom deep links with automatic fallback to standard URLs if deep links are unavailable. The system supports asynchronous webhook notifications to trigger external events upon link access. It utilizes xxHash for efficient duplicate detection and mi