wavly / shawty

Tool for shortening long URLs
MIT License
5 stars 0 forks source link

Reduce network latency when reading from the database #26

Closed Hamza12700 closed 2 months ago

Hamza12700 commented 2 months ago

We need to cut down the network latency when reading from the database, reading from the database every single time the user goes to the short link is awful. We can significantly cut down the network latency using in-memory database caching with Memcached.

Storing the code for short links alongside with their original links will result in faster redirection than making a call to the database.