Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 702 Bytes

README.md

File metadata and controls

9 lines (5 loc) · 702 Bytes

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.