The UUID (I sometimes call it URL key because it is the key of our storage object) should adhere to the Base62 encoding scheme (26 + 26 + 10):ġ.A lower case alphabet 'a' to 'z', a total of 26 charactersĢ. An upper case alphabet 'A' to 'Z', a total of 26 charactersģ. In this POC, we will not be supporting custom short links A digit '0' to '9', a total of 10 charactersĤ. The length of our UUID should be ≤ 8 characters as 62⁸ would give us about ~218 trillion possibilities.The short URL generated should never expire. ![]() #TINYURL SYSTEM DESIGN FOR FREE#Īs a result, our constraints depend largely on Cloudflare Worker’s pricing and platform limits.Īt the time of writing this, the constraints per account to host our service for free are: The aim is simple - I want to be able to host this service for free. Like most URL shorteners, our application is expected to encounter high reads but relatively low writes. Moving on from our previous constraints, the free tier of KV and limit allows us to have: To store our data, we will be using Cloudflare KV, a key-value data store that supports high read with low latency - perfect for our use case.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |