Skip to content
Full-Stack SystemsLive Demo

Apexis v2.0 — High-Frequency Telemetry Broker, Lakehouse & Deep Learning Engine

Role
Lead Architect & Systems Engineer
Dates
April 2026
Stack
C++20 · Go 1.23 · PyTorch 2.7 · Apache Flink · Apache Iceberg · Next.js 14 · TypeScript · Docker
Apexis v2.0 — High-Frequency Telemetry Broker, Lakehouse & Deep Learning Engine

01.Executive Summary

Apexis v2.0 is a distributed telemetry intelligence platform and streaming lakehouse engineered for professional motorsport engineering teams. It bridges ultra-low latency hardware data pipelines (C++20 lock-free ring buffers, Go 1.23 WebSocket gateway) with an Apache Flink/Iceberg lakehouse and a PyTorch lap-time transformer, while rendering 60fps real-time spatial race modeling in the browser.

02.Problem & Constraints

Motorsport race engineers face severe telemetry fragmentation: live CAN bus and timing feeds generate over 250,000 packets per second, but traditional cloud telemetry pipelines introduce 200–500ms network jitter, dropped UDP frames, and slow batch queries. There existed no unified low-latency architecture capable of sub-2ms broker ingestion, live transformer lap-time forecasting, and zero-jank 60fps browser telemetry.

03.System Architecture

Architected as a multi-tier streaming pipeline. A C++20 ingest engine uses lock-free Single Producer Single Consumer (SPSC) ring buffers with memory-mapped shared memory to ingest live vehicle CAN bus frames. A Go 1.23 WebSocket gateway brokers events with sub-1.8ms p99 latency to a Next.js 14 client and an Apache Flink streaming ETL worker that commits Parquet tables to an Apache Iceberg lakehouse on MinIO/S3. A PyTorch Lap-Time Transformer (4-layer encoder-decoder) predicts sector lap times with 0.430s MAE, while a dedicated browser Web Worker (simulator.worker.ts) executes real-time 2D spatial race physics at 60fps and a client-side Tesseract.js worker parses live broadcast timing graphics.

Interactive architecture laboratory

Apexis v2.0 System Architecture (C4 Component Model)

Multi-tier streaming telemetry pipeline from C++20 ingestion to Go broker, Flink lakehouse, PyTorch transformer, and browser worker.

C4 Level 2/3 Component Model
workerLock-Free SPSC Ring Buffer

C++20 Ingest Engine

Consumes raw vehicle CAN bus & OpenF1 frames into shared memory ring buffer at 250k+ msg/s

apiWebSocket / epoll Gateway

Go 1.23 Telemetry Broker

Dispatches real-time telemetry packets with sub-1.8ms p99 latency to streaming consumers

storageStreaming Lakehouse / MinIO

Apache Flink & Iceberg

Executes streaming ETL and appends partitioned Parquet records to Iceberg catalog

workerDeep Learning Inference

PyTorch Lap-Time Model

Predicts sector delta and tire degradation lap-time evolution (0.430s MAE)

workerDedicated Web Worker

simulator.worker.ts

Calculates 2D car coordinates and sector times off the UI thread at 60fps

clientNext.js 14 / Tailwind

React UI Thread

Renders real-time telemetry gauges, driver leaderboards, and spatial track HUD

Inter-Component Protocol Boundaries

can-bus-ingest→go-gateway
Shared Memory IPC
go-gateway→flink-lakehouse
gRPC / TCP
go-gateway→client-ui
WebSocket (<1.8ms)
flink-lakehouse→pytorch-transformer
Parquet Stream
client-ui→sim-worker
postMessage
sim-worker→client-ui
postMessage

04.Engineering Decisions & Tradeoffs

Separated the high-throughput ingestion tier into compiled C++20 and Go binary brokers while running lakehouse analytics on Flink/Iceberg and simulation in client Web Workers. This eliminated UI-thread bottlenecks and cut p99 latency from 150ms to sub-1.8ms without cloud GPU streaming costs.

Decision 1: C++20 Lock-Free SPSC Ring Buffer vs OS Mutex Queues

Option chosen

Lock-free single-producer single-consumer ring buffer with atomic memory fences.

Alternative rejected

Standard std::mutex and std::condition_variable synchronized queue.

Cost accepted

Requires fixed-size circular ring allocation and careful memory barrier validation.

Measured impact

250,000+ msg/s sustained ingestion with zero lock contention and 0.28ms p99 enqueue latency.

Decision 2: Go 1.23 WebSocket Telemetry Gateway vs Node.js Socket.IO

Option chosen

Goroutine-per-client WebSocket gateway in Go 1.23 with epoll network polling.

Alternative rejected

Node.js event-loop Socket.IO server.

Cost accepted

Dual-language maintenance footprint between C++ core, Go gateway, and Python ML.

Measured impact

Sub-1.8ms p99 broker latency across 5,000 concurrent browser sessions with 70% lower memory usage.

Decision 3: Apache Flink Streaming Lakehouse vs PostgreSQL Batch Ingestion

Option chosen

Apache Flink streaming ETL appending Parquet data files to an Apache Iceberg catalog on MinIO/S3.

Alternative rejected

Direct relational database row inserts into PostgreSQL or TimescaleDB.

Cost accepted

Higher architectural footprint requiring JVM cluster coordination and checkpoint storage.

Measured impact

Infinite horizontal scalability, zero table bloat, and sub-second analytical query capability over 100+ GB race sessions.

05.Evaluation & Verified Metrics

Key performance indicators and latency profiles benchmarked under explicit workload and hardware constraints.

Broker Throughput

250k+ msg/s

C++20 lock-free SPSC buffer & Go gateway

Measured on: Bare-metal Ubuntu 24.04 LTS & Windows 11 testbench, Go 1.23, C++20 Clang 18, 10GbE loopback.

Broker p99 Latency

< 1.8 ms

Sub-1.8ms p99 packet-to-broker transit

Measured on: Bare-metal Ubuntu 24.04 LTS & Windows 11 testbench, Go 1.23, C++20 Clang 18, 10GbE loopback.

Simulation Frame Rate

60 fps

Off-main-thread Web Worker physics pipeline

Measured on: Chromium 124+ / macOS & Windows 11, evaluated over 10-minute continuous race sessions with 20 active cars.

Lap-Time Model MAE

0.430 s

PyTorch Lap-Time Transformer validation error

Historical Query Time

< 12 ms

Indexed local SQLite lookups (1950–present)

Measured on: Node.js serverless execution environment.

06.Personal Contribution

Sole designer and developer. Conceived the architectural separation between UI rendering, Go WebSocket gateway, and C++20 lock-free ring buffers, trained the PyTorch Lap-Time Transformer, and integrated the Flink/Iceberg lakehouse.

07.Limitations & Next Steps

Known limitations:

Simulation fidelity is constrained to 2D track path projections and does not model 3D aero-wake turbulence between closely following cars.

Next engineering steps:

Implementing live team-radio speech-to-text audio transcription and an automated safety-car probability model based on sector yellow-flag clustering.