Pergunta de entrevista da empresa CDC Informatique

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

Resposta da entrevista

Sigiloso

22 de mai. de 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.