Loading...
3. Create the Slug: The final slug could be derived from the encoded or truncated version of the UUID to produce a relatively short identifier for use in URLs.
The database design for this example is pretty simple since we don't have authentication.
Table: SHORT_URL
Create Flow
Read / Get Flow (Redirect) - CACHE HIT
Read / Get Flow (Redirect) - CACHE MISS
Webservers, ALBs, API Service and Databases all send logs and metrics to Cloudwatch.
Additional notes
Main bottlenecks would be the read from the database, as spiked requests directly to the database can slow the application down.
Future improvements to the applications functionality: