Sollicitatievraag bij CDC Informatique

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

Antwoord op sollicitatievraag

Anoniem

22 mei 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.