-User and Client feed through an API Gateway containing two base services: The shortening service and the Redirect service.
-The shortening service contains the business logic for creating the shortened URL as well as the mapping between actual and shortened URL.
-The redirect service is used when the end-user enters the shortened URL in their browser. It effectively redirects them to the correct web page using the shortened URL.
-The database is where the mapped URLs (long and short) are stored. If the service is to be implemented around the globe, a CDN or distributed architecture may be considered
Deep dive into 2-3 key components. Explain how they work, how they scale, discuss tradeoffs, capacity, and any relevant algorithms or data structures.