Loading...
Public:
createShortUrl(longUrl)
lookupLongUrl(shortUrl)
Private:
doesShortUrlExist(shortUrl)
Loopup if something is used based on a db index
Scaling is based on the number of collisions and creation tries
Lookups are in a db as a map or kv (k being a primary indexed key)