02 / Distributed systems / Architecture
Device Health
Predictive maintenance platform
An event-driven telemetry platform design that separates device simulation, durable history, live state, and failure prediction.
In development · Architecture documented01 / Context
Problem statement
Investigating device failures requires both a durable history of telemetry and a timely view of current device state. A useful design must distinguish simulated ground truth, model predictions, and the rules that produce operational alerts.
02 / Approach
Solution overview
The proposed platform uses a C++20 device simulator, Kafka event transport, and a Python processing layer. PostgreSQL owns historical records; Redis holds derived operational state. Separate inference and alert evaluation components would feed a FastAPI backend and Next.js dashboard.
03 / Toolkit
Planned implementation stack
- C++20
- Python
- Kafka
- PostgreSQL
- Redis
- Docker
- FastAPI
- Next.js
04 / Structure
System architecture
The documented flow is simulator → Kafka → validation/processing → PostgreSQL and Redis. Validated observations feed inference; an alert evaluator interprets model risk and device conditions. The API composes historical and current views for the dashboard. Every service in this diagram is a design component, not an operational deployment.
05 / Ownership
My contributions
- Defined requirements, the telemetry schema, and logical component responsibilities.
- Documented architecture decisions for data ownership, asynchronous transport, and simulator ground truth.
- Outlined testing, security, and local-first development standards before service implementation.
06 / Engineering
Challenges & design decisions
Separate durable and derived data
PostgreSQL is the proposed system of record. Redis serves reconstructable current state rather than becoming a second source of historical truth.
Keep prediction separate from alerting
The model supplies a risk signal; a distinct evaluator decides whether that signal warrants an alert. Simulator ground truth remains independent of both.
Start locally
Docker-based local development is the planned first deployment path. Cloud infrastructure and production deployment are outside the initial phase.
07 / Correctness
Testing & reliability
A testing strategy is documented for simulator behavior, schema validation, ingestion, persistence, caching, inference, and integration. Test suites and measured throughput or model performance are not yet implemented or reported.
08 / Progress
Results & current status
The public repository currently contains a README and design documentation, including architecture decision records. No simulator, Kafka consumer, ML pipeline, API, dashboard, or deployment is implemented in the inspected source. The next step is simulator and telemetry-ingestion implementation.
09 / Further reading