Skip to content

spundun/url_shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 

Repository files navigation

URL Shortner using Rails 4

Shorteners like Bitly use Base62(checkout Base64) encoding for shortened URLs(62 characters A-Za-z0-9). This one doesn't use the Base62 encoding. Since ActiveRecord gives each object a uniqe id (1, 2, ...), I decided it was simpler and more elegant to just use that, even if that meant slightly longer URLs once the traffic exceeds, let's say 10000 URLs(!). So the shortend URLs are of the format ...com/1, etc.

===Future Improvements===

  • I'm excited about Docker so I am going to try to deploy this using Docker, maybe even Kubernetes if I have time for that.
  • To use Base62 encoded short keys, I'd want to port to persistent Redis or Mongo backend.
  • Make it a microservice with a separate (may be EmberJS) frontend.

About

A URL Shortener in Rails 4

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published