Documentation

Realtime Platform

Production-grade realtime infrastructure — Sync, Socket, and Database CDC streaming unified under one platform.

The Realtime Platform is a production-grade infrastructure system that provides three unified realtime capabilities under a single, horizontally-scalable architecture.

How It Works

Clients subscribe to domain topics (e.g. session.status, order.updated), not internal services. The platform determines the producing service internally and routes all events through a normalized RealtimeEvent envelope via Redis Pub/Sub.

Realtime Platform
 ├── API Server (Express + Socket.IO)
 ├── Socket Gateway
 ├── Event Router
 ├── Hosted Redis
 │    ├── RedisJSON (document state)
 │    ├── Pub/Sub (event fanout)
 │    └── BullMQ (job queues)
 ├── CDC / Outbox Workers
 ├── Webhook Dispatcher
 ├── Topic Registry
 ├── Schema Registry
 ├── Metrics Collector
 ├── Event Debugger & Replay
 ├── Admin API
 └── Management UI (React + MUI)

Key Features

  • Domain-driven subscriptions — Subscribe to business topics, not infrastructure channels
  • Multi-tenant isolation — Application-scoped data with environment promotion (dev → staging → prod)
  • Versioned schemas — JSON Schema validation with backward compatibility enforcement
  • CDC streaming — Stream PostgreSQL row changes to subscribers in real time
  • Webhook delivery — HMAC-signed webhook dispatch with retries and dead-letter queues
  • Event debugging — Trace, inspect, and replay events through the debugger
  • Full Admin UI — 17+ pages for managing every aspect of the platform
  • User authentication — Session-based auth with RBAC, MFA, and invite system
  • Operational dashboards — Real-time delivery, pipeline, and reliability metrics

Technology Stack

LayerTechnology
RuntimeNode.js >= 20, TypeScript
APIExpress, Socket.IO
DatabasePostgreSQL >= 14
Cache/Pub-SubRedis >= 7.0 (with RedisJSON)
QueueBullMQ
Buildpnpm workspaces, Turborepo
TestingVitest
Admin UIReact, Material UI
SDK@smarterservices/realtime