Design a URL shortening service (like bit.ly or TinyURL). Given a long URL, generate a short, unique alias that redirects to the original URL. The system must handle high read/write throughput, ensure uniqueness of short codes, support low-latency redirects, and be horizontally scalable. Topics typically…