Loading...
We're going to do back-of-the-envelop estimation here :
There are gonna be 2 main API for the system, that are :
So we're going to use SQL database because our data will be in a fixed schema, that mainly will be containing shortUrl (string) and longUrl (string) as the columns. In order to, reduce latency, we also going to implement in-memory data store a.k.a caching (with key-value pair of shortUrl and longUrl respectively), especially for frequently accessed data (our caching mechanism will be LFU).
Already created in the high level diagram.
Continuing from the current high level diagram, in-depth, :
Explain any trade offs you have made and why you made certain tech choices...