System Design Interview, Technology, Coding, Programming.
the same long URL always maps to the same short URL. Collisions: Handle cases where two different URLs might hash to the same short URL. Expired URLs: Implement a mechanism to handle and possibly remove expired short URLs. Optimize for Performance: Caching: Use Redis or Memcached to cache URL