Loading...
Require a creation api and a retrieval api
Client's connect to a load balancer and then an api gateway that routes the request to one of two services, creation and redirect services which both reads from a database
To get low latency, more frequently used urls are stored in a Redis cache for faster lookups. A read replica is also used to achieve scalability for reads and supporting a growing user base.
To achieve low storage requirements, each url are only stored with a hash value and the shortened url.