I Built a URL Shortener

(learnitmyway.com)

1 points | by learnitmyway 4 hours ago ago

1 comments

  • learnitmyway 4 hours ago ago

    Author here. I've been brushing up on system design and wanted to see how the classic URL shortener interview question holds up when you actually build and deploy it.

    A few things I hadn't expected:

    - Caching redirects at the CDN is what made a 100x traffic spike manageable.

    - Once the CDN was in place, Redis no longer added anything, so I removed it.

    - Behind the CDN, the cost difference between ECS + RDS and Lambda + DynamoDB mostly disappeared. The practice deployment went from about $50 a month to about $0.

    The code is here if you want to dig in: https://github.com/curiousdirection/url-shortener