Loading...
POST /shorten API, takes in a URL and returns a response with a valid shortened URL that redirects to the inputted URL
1 DB to store URL and associated alias
Client -> Load Balancer -> CDN (cache commonly inputted URL aliases) -> Server (generate the alias) -> DB (store the URL and alias)
Client POSTS to /shorten with the URL, goes through maybe an API gateway which will send to CDN (probably redis) if cached, otherwise send through load balancer to server which generates the shortened URL, saves to DB (would it get cached here? is it like recency cache or popular cache, unsure how that works) and returns response to user