Serverless URL Shortener

A serverless URL shortener built on AWS exploring event-driven architecture with Lambda, API Gateway, and DynamoDB.

Note: Due to the default API Gateway URL length, this currently behaves more like a “URL lengthener” 😅

Custom domain support would fix this.

The Project

A serverless URL shortener built on AWS, designed to handle URL generation and redirection without managing any backend infrastructure.

The system creates unique short IDs for long URLs and resolves them through a lightweight API, enabling fast redirection using HTTP responses.

I implemented the architecture using API Gateway, Lambda, and DynamoDB, with a static frontend hosted on S3. The focus was on understanding serverless design patterns, service integration, and building a fully deployed cloud-based application with automated delivery.

Key points

  • Serverless architecture using AWS (API Gateway, Lambda, DynamoDB)
  • URL shortening with unique ID generation
  • HTTP 302 redirection handling
  • REST API design (POST /shorten, GET /{id})
  • Persistent key-value storage with DynamoDB
  • Static frontend hosted on S3
  • CI/CD pipeline using GitHub Actions
  • Integration challenges (CORS, service communication)
Previous
Previous

From Flat to Snowflake: Data Modeling in Power BI

Next
Next

Custom Timers App