Loading...
Write:
POST:
request: co.io/url
responseCodes: 200 (OK), 500 (INTERNAL_SERVER_ERROR), 400 (BAD_REQUEST)
response: the shorten URL
GET:
request: co.io/url/{URL}
responseCodes: 200, 500, 400, 404
response: the long url
columns: id, short_url, long_url, created_at, last_access_date, tombstoned (true, false)
Explain any trade offs you have made and why you made certain tech choices...
Try to discuss as many failure scenarios/bottlenecks as possible.
What are some future improvements you would make? How would you mitigate the failure scenario(s) you described above?