Data Engineering · Full-stack
Vehicle Telemetry AnalyticsFull-Stack Prototype
A million telemetry records, batch-processed and explained.
A full-stack prototype that processes one million synthetic vehicle telemetry records with PySpark and Parquet, flags safety events with a YAML rule engine, and serves them through FastAPI and React.
- Timeline
- 2026
- Status
- Prototype · evolved into DriveAnalytics
- Stack
- PythonPySparkParquetPostgreSQLFastAPIReactSQLAlchemypytestGitHub ActionsDocker Compose
- 1M
- telemetry records processed
- PySpark
- + Parquet batch workflows
- EXPLAIN
- ANALYZE query benchmarking
The problem
Why I built it
I wanted to practise the full data path at realistic volume: batch processing, a queryable store, a rules layer, and an API and UI on top, before pointing it at real-world data.
How it works
From input to result
- 01
Generate
One million synthetic vehicle telemetry records.
- 02
Batch process
PySpark jobs over Parquet compute temporal and fleet-level aggregations.
- 03
Detect
A YAML-configured safety-rule engine with typed validation flags events and attaches explainable evidence.
- 04
Store & tune
Results land in PostgreSQL via SQLAlchemy; queries are benchmarked with EXPLAIN ANALYZE and backed by workload-specific indexes.
- 05
Serve
FastAPI and React, with pytest, GitHub Actions CI and Docker Compose.
Engineering
Decisions worth talking about
Evidence with every flag
Each safety event carries the rule and the data that triggered it, so a flag can be explained, not just counted.
Indexes chosen from measured plans
Indexes were added for the actual query workload after reading EXPLAIN ANALYZE output, not guessed up front.
Limits & next
What it can't do yet
- The data was synthetic, so it couldn't answer real questions. The backend, rule engine, tests, CI and Docker setup carried over into DriveAnalytics, rebuilt on real crash records.