Back to Projects
BackendIoTPersonal
Mock Factory — IoT Simulation API

Tech Stack
Java 21Spring Boot 3.2WebSocketSTOMPREST APIThymeleaf
Overview
Mock Factory is a lightweight Spring Boot service that simulates industrial IoT devices on a virtual factory floor. It produces realistic telemetry streams (temperature, pressure, vibration, flow rate) and broadcasts them in real-time over WebSocket (STOMP), while also exposing a clean REST API.
The service supports 4 device types and 4 signal generation strategies (Realistic with Brownian motion, Random walk, Sine wave, and Chaos for fault injection). It includes a built-in dark-themed web dashboard for live telemetry monitoring, full CRUD device lifecycle management via REST, and runs standalone with zero external dependencies — no database or message broker required.
Challenges
- Generating realistic industrial telemetry data that mimics actual sensor behavior and fault patterns
- Streaming high-frequency telemetry updates to multiple clients without performance degradation
- Providing a zero-dependency simulation that runs standalone for easy developer adoption
Solutions
- Implemented multiple signal strategies (Brownian motion, sine wave, chaos) with configurable ranges per device type
- Used STOMP over WebSocket with per-device topic channels for efficient real-time broadcasting
- Designed the service with in-memory state only — no database or external broker required to start simulating