Question d’entretien chez CDC Informatique

API Layer: Provide a RESTful API to accept long URLs and return shortened ones.

Réponse à la question d'entretien

Utilisateur anonyme

22 mai 2025

I proposed using a hash function to convert long URLs into unique short codes and storing them in a key-value database. I mentioned the use of load balancers for handling high traffic, database replication for reliability, and Redis or Memcached for fast access to frequently requested URLs. I also explained how to implement rate limiting and logging for analytics.