Atharva Unde
~/projects/ url-shortener
Internal Product → Enterprise PlatformCareerLabs Technologies Pvt. Ltd.ShippedDec 2021 – Dec 2022

Enterprise URL Shortener

High-throughput URL shortener with real-time click analytics, geolocation tracking, RBAC, and campaign insights.

RESULTHundreds of thousands of redirects · adopted across marketing, HR, and sales
ROLESole developer - built MVP in days, evolved to enterprise platform
TIMELINEDec 2021 – Dec 2022 · CareerLabs Technologies Pvt. Ltd.
01 · THE ORIGIN STORY

A third-party URL shortening service shut down overnight. No warning.

Every shortened link across CareerLabs broke simultaneously - in marketing campaigns, email sequences, HR documents, student onboarding flows, and sales decks. Conversion tracking was severed. Teams couldn't reach their own links.

This was a mission-critical incident. I had days to fix it.


04 · TECHNICAL ARCHITECTURE

How it fits together

Node.jsExpress.jsSequelize ORMVue.jsVuetifyAWS EC2
ALSONode.js redirect engine with Redis cachingCustom domain support per teamClick analytics pipelineBulk import for campaign links

Databases: PostgreSQL + MongoDB (hybrid)

KEY DESIGN DECISIONS
DECISION 01The Hybrid Database Architecture

This was the most consequential design decision - and the most deliberate.

PostgreSQL (via Sequelize ORM) handles all relational data: users, links, roles, permissions, password protection records. This is structured data with complex relationships - foreign keys, transactions, referential integrity. A relational database is exactly the right tool.

MongoDB handles click analytics. Every redirect fires a write: timestamp, short code, destination, IP, geolocation, browser, device, referrer. This is write-heavy, schema-flexible (different analytics fields for different link types), and queried primarily through aggregations at scale. A document store handles this pattern far better than a normalized relational schema.

The result: neither database is being asked to do something it wasn't designed for. PostgreSQL runs fast, clean relational queries. MongoDB absorbs high-volume analytics writes and powers the reporting dashboard with aggregation pipelines.

05 · DEVELOPMENT PROCESS

5 phases

Restored core URL shortening and redirection; new short codes mapped over broken links from the shutdown vendor
02 · PHASE 1: THE MVP (DAYS)

Phase 1: The MVP (Days)

The immediate goal was simple: restore URL shortening and redirect traffic. I built a functional MVP in days - Express.js backend, basic Vue.js interface - restoring core operations and bringing broken links back to life with new short codes.

Once the fire was out, a bigger opportunity came into focus: the company now had a URL shortener it owned entirely. What should it become?


03 · PHASE 2: THE ENTERPRISE PLATFORM

Phase 2: The Enterprise Platform

What started as an emergency fix became the backbone for marketing, HR, and sales link management across the entire organization - serving hundreds of thousands of URL redirects across all teams.

Key Features

Feature Detail
URL Shortening Long URLs to short, shareable links with optional custom aliases
Role-Based Access Control Granular permissions - different departments own and manage different links
Advanced Click Analytics Click-through rates, IP geolocation, browser, device, and referrer breakdowns
Password Protection Sensitive links secured with passwords for confidential use cases
Conflict Resolution Detects duplicate custom shortlink requests; surfaces conflicts before they cause problems
Licensing & Payment Integration Monetization layer added to position the tool as a potential external SaaS product

06 · QUANTIFIED IMPACT

Quantified Impact

Metric Result
Time to MVP Days (emergency response to vendor shutdown)
Total redirects served Hundreds of thousands
Departments using the platform Marketing, HR, Sales
Vendor dependency Eliminated entirely
Analytics visibility Zero (before) → click-level geolocation, device, browser data

07 · IMPACT & TAKEAWAY
Crisis → functional MVP in days → hundreds of thousands of redirects. The internal tool that replaced a dead vendor and became organizational infrastructure.

This project demonstrates two things simultaneously: the ability to execute fast under pressure, and the discipline to build it right once the immediate crisis is resolved.

The hybrid PostgreSQL + MongoDB architecture is a reusable model for any system where transactional correctness and analytical scale live at different layers. The RBAC model made a single internal tool usable by three different departments with different access patterns - without chaos.

And the fact that it was scoped for potential SaaS launch shows what's possible when you build with the right foundations from the start, even during a crisis.


URL shortenerlink managementclick analyticsIP geolocationshort linkscampaign trackinglink analyticsmarketing toolsURL management platform
KEEP EXPLORINGAll projects