Ravindra BagaleCourses & study guides मराठी Track your progress

Ravi Sir's Cards › AWS

AWS Cloud

What is a URL shortener?

This revision card explains What is a URL shortener? It starts from the need that instagram bios and Flipkart share links cannot paste a huge URL. People need a tiny code that opens the long page. A URL shortener stores a long URL behind a short code (like Ab12XyZ). Visiting the short link redirects to the long URL and can count clicks. The how-to section notes build it with API Gateway (HTTPS), Lambda (logic), and DynamoDB (shortCode , then longUrl, clicks). No always-on EC2. An example on the card is POST {"url":"https://ravindrabagale.com/aws/"} returns shortCode Ab12XyZ. GET /Ab12XyZ returns HTTP 302 to that long URL.

What is a URL shortener? Instagram bios and Flipkart share links cannot paste a huge URL. People need a tiny code that opens the long page. A URL shortener stores a long URL behind a short code (like Ab12XyZ). Visiting the short link redirects to the long URL and can count clicks. Build it with API Gateway (HTTPS), Lambda (logic), and DynamoDB (shortCode → longUrl, clicks). No always-on EC2. POST
What is a URL shortener? · Download PNG
Read card text

What this card says

Why do we need it?

Instagram bios and Flipkart share links cannot paste a huge URL. People need a tiny code that opens the long page.

What is it?

A URL shortener stores a long URL behind a short code (like Ab12XyZ). Visiting the short link redirects to the long URL and can count clicks.

How to do it

Build it with API Gateway (HTTPS), Lambda (logic), and DynamoDB (shortCode → longUrl, clicks). No always-on EC2.

POST /shorten · GET /{code}

Example

POST {"url":"https://ravindrabagale.com/aws/"} returns shortCode Ab12XyZ. GET /Ab12XyZ returns HTTP 302 to that long URL.

See all AWS revision cards