Loading...
encoding mechanism (eg sha-256), url length(max&min) , routing mechanism
write heavy ,availability important
encoding api,routing api,shortner api
client-> url->-cache(redis)>url shortner->relational db (key value pair url:shortened url)
as write heavy i think write through caching to be used
enter url it cheks cache if not present hits the api and encodes and returns the shortened url