Skip to main content
Distributed SystemsEngineered by Shah Meer

Nexus Stream

Designed a distributed microservice event pipeline using Redis Streams, FastAPI, Docker Compose, PostgreSQL, and C++ for high-throughput stream ingestion and sub-10ms processing latency.

Nexus Stream architecture and interface preview

5,000+ ops/sec

Throughput

Sustained event stream throughput

< 10 ms

End-to-End Latency

Sub-10ms processing at P99

Zero Loss

Fault Recovery

Redis consumer group acknowledgments

Docker Compose

Containerization

One-command reproducible staging cluster

The Problem Statement

Operational Constraints & Friction

High-volume event ingestion pipelines frequently bottleneck when processing concurrent bursts of sensor or transactional data without losing event ordering.

Engineered Solution

Architectural Execution

Designed a distributed microservice event pipeline using Redis Streams, FastAPI, Docker Compose, PostgreSQL, and C++ for high-throughput stream ingestion and sub-10ms processing latency.

Nexus Stream — System Architecture

High-Level Topology & Data Flow

5,000+ Events/sec with Sub-10ms P99 Latency
Ingestion Layer

High-Throughput Ingestion Clients / Sensor Streams

Client requests, sensors & telemetry

Gateway / Proxy

FastAPI Ingestion Gateway (Async I/O)

Core Service Cluster
Redis Pub/Sub & Stream Ingest Engine
C++ Low-Latency Transformation Worker
Python Analytics & Aggregation Consumer
⚡ Queue: Redis Stream Consumer Groups (Buffered)
Data & State Tier
PostgreSQL Read/Write Pool
Redis In-Memory Cache

ACID Persistence & Read/Write separation

Technical Specifications & Internals

Internal Topology & Data Mechanics

An asynchronous FastAPI gateway ingests events into a Redis Stream cluster. C++ and Python consumer worker pods subscribe through Redis Consumer Groups, process transactional state changes, and batch-persist writes into PostgreSQL.

Technologies Used
C++PythonRedisFastAPIDockerPostgreSQL

Engineering Obstacles Overcome

Preserving sub-10ms latency while ensuring no duplicate events are committed to PostgreSQL during network partitions.

Key Capabilities & Implementations
  • Real-time event streaming & fan-out
  • Decoupled asynchronous worker nodes
  • Multi-container Docker Compose orchestration
  • Sub-10ms end-to-end processing latency
  • Fault-tolerant consumer group offsets

Project Delivery & Impact

Built a high-performance event pipeline capable of processing thousands of events per second with sub-10ms latency.