Skip to content

URL shortener using Twitter snowflake IDs encoded with Base62

Notifications You must be signed in to change notification settings

dscottpi/url_shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URL shortener

A simple URL shortener built on Flask.

For every new URL submitted, it generates an ID akin to Twitter snowflake and encodes it to base62.

This project was just for learning as I was most interested in implementing a Snowflake ID generator and base62 converter. The rest of the code is.. not my best.

I also haven't implemented anything that would allow you to scale up to multiple machines (which is the main use case for using something like Snowflake in the first place) but in theory the Snowflake implementation wouldn't have to change for that to be possible.

About

URL shortener using Twitter snowflake IDs encoded with Base62

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published