Skip to content

dhruv-baveja/short_urls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Short URLs

This application allows you to minify or shorten your URLs. You can create short URLs for multiple long URLs at once. It also allows you to get long URLs corresponding to your short URLs in bulk.

Available API's:

  • /urls/long/
    • POST method
    • JSON format
    {"long_urls": ["http://www.example.com/", "https://www.example.com/"]}
    
  • /urls/short/
    • POST method
    • JSON format
    {"short_urls": ["http://hck.re/er23hf65", "http://hck.re/Er47hF90"]}
    
  • /<short_url>/
    • GET method
    • redirects to the long url

Architecture

To come up with the architecture below, I researched and tested for which database and cache to use. For more details regarding the thinking involved here, please look here.

Components

  • Database

    • MongoDB
  • Cache

    • Redis
  • Language/Framework

    • Python/Django
  • Additional Tools

    • Celery, RabbitMQ

About

Minify your URLs instantly

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published