Hacker News new | ask | show | jobs
I Built a URL Shortener (learnitmyway.com)
1 points by learnitmyway 8 days ago
1 comments

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