madebyleon.meLoading
0%
01 / Initializing
000
Analytics API Service
BackendProduction·2026

Analytics API Service

Behavioral tracking and insights pipeline for multi-platform clients

NestJSTypeScriptPostgreSQLRabbitMQRedisDocker

Overview

A high-throughput analytics ingestion API capable of processing millions of events per day from web and mobile clients, with real-time aggregation pipelines and a dashboard for client behavioral insights.

The Problem

Multiple client applications needed behavioral analytics but existing third-party solutions were prohibitively expensive at scale and didn't allow custom event schemas. Client-specific data sovereignty requirements also ruled out SaaS options.

The Solution

Designed an event ingestion API using NestJS with async processing via RabbitMQ queues, time-series storage in TimescaleDB, and a configurable aggregation engine. Built a multi-tenant dashboard for each client to visualize their user funnels.

The Outcome

Processing 2.3M events/day across 8 client integrations with p99 ingestion latency under 45ms. Reduced client analytics costs by ~70% compared to equivalent third-party solutions.

↑ Impact

Processing 2.3M events/day across 8 client integrations with p99 ingestion latency under 45ms. Reduced client analytics costs by ~70% compared to equivalent third-party solutions.

#NestJS#TypeScript#PostgreSQL#RabbitMQ#Redis#Docker