Live API · us-east-1 · AWS Lambda

Serverless
Event Pipeline

A real-time event-driven data pipeline built on AWS Lambda, API Gateway, DynamoDB, and SQS. Click the buttons below to interact with the live API. View on GitHub →

POST /shorten      →  Lambda (shortener)  →  DynamoDB (urls table)

GET /{code}        →  Lambda (redirect)   →  DynamoDB → SQS → 302
                                                         ↓
                                              Lambda (analytics)
                                                         ↓
                                              DynamoDB (clicks + counter)

GET /stats/{code}  →  Lambda (stats)      →  DynamoDB (both tables)
01
Shorten URL
Creates a short code, writes to DynamoDB with a conditional write to prevent collisions.
POST /shorten
// Response will appear here
02
Follow Redirect
Reads from DynamoDB, fire-and-forget sends a click event to SQS, returns 302. Response under 100ms.
GET /{code}
// Response will appear here
03
Click Analytics
Queries both DynamoDB tables. The analytics Lambda has already processed clicks asynchronously via SQS, aggregating top user agents and referers.
GET /stats/{code}
// Stats will appear here
event_log
[ready] Pipeline initialized. Click a button above to start.