FINANCIAL TELEMETRY

RevenueRadar: SaaS MRR & Churn Analytics

A real-time financial telemetry engine that unifies Stripe and Chargebee billing streams into live MRR forecasting, customer cohort retention graphs, and expansion revenue attribution.

Try Interactive Simulator ↓
Year2024
RoleData Architect & Full-Stack
TypeB2B Financial Analytics
Timeline8 weeks

The Problem

Founders and finance operators running recurring subscription businesses struggle to extract true net MRR growth from raw payment processor dashboards. Stripe and Chargebee log individual invoice events, but calculating Net Revenue Retention (NRR), monthly cohort decay, and customer expansion requires complex dimensional transformations that off-the-shelf dashboards often obscure.

I built RevenueRadar to provide instant, audit-grade financial clarity: connect billing webhooks, ingest invoice line items into an idempotent data pipeline, and render real-time cohort retention curves with sub-second query performance.

Architecture & Data Pipeline

The system is built on a four-stage decoupled architecture:

  1. Ingestion Webhooks: Secure Node.js endpoints verify Stripe/Chargebee HMAC signatures and push raw payload events into an asynchronous Redis queue.
  2. ETL Normalization: Background workers normalize disparate currency exchanges, handle pro-rated upgrades/downgrades, and categorize transaction deltas (New, Expansion, Contraction, Churn, Reactivation).
  3. Time-Series Storage: Normalized records populate a PostgreSQL database indexed for high-speed cohort aggregation and moving-average calculations.
  4. Interactive Telemetry Interface: A Next.js front-end with optimized Canvas visualizations allows executive teams to slice revenue by plan tier, acquisition channel, and geography.

The Stack

Next.js 14
TypeScript
Stripe REST API
PostgreSQL
Redis Queue
Chart.js
Tailwind CSS
Docker

Key Features Delivered

  • Live MRR Breakdown Waterfall: Visualizes New MRR, Expansion, Contraction, and Churn in real time.
  • Cohort Retention Heatmap: Tracks month-over-month customer retention percentages across 12 consecutive signup cohorts.
  • LTV & CAC Payback Engine: Computes blended and organic Customer Acquisition Cost payback periods automatically.
  • Automated Churn Early Warning Alerts: Triggers Slack and email webhooks when account payment failures (dunning) exceed defined thresholds.

Architectural Lessons

Handling webhook concurrency was the critical technical challenge. High-volume Stripe event storms during subscription billing cycles can produce out-of-order execution. Implementing a Redis-backed distributed lock with event version timestamps prevented race conditions and ensured zero duplicate revenue recording.

Live Interactive Sandbox · Financial Telemetry

Interactive SaaS MRR & Churn Simulator.

Adjust the baseline metrics below to simulate 12-month compound MRR growth, Net Revenue Retention, and customer lifetime value in real time.

12-Month Projected MRR
$22,840
Annual Run Rate (ARR)
$274,080
Net Revenue Retention
100.5%
Net Monthly Velocity
+8.5% / mo
■ Base MRR ■ Net Expansion ■ Churn Risk