How vivacity5x/factory-backend works
This is a Spring Boot backend for factory telemetry ingestion and machine analytics. The documented workflow is client batch submission through the event controller and service, which validates and deduplicates events before persistence; analytics requests go through the stats controller and service to time-window repository queries. The README also describes a concurrent event store and MySQL persistence. No source excerpts were provided, so edges below rely on documented relationships only; implementation details and any connection between the in-memory store and database are not inferred.
Main entry points: EventService.java Event Service · EventController.java Event Controller · StatsController.java Stats Controller · StoredEventRepository.java Event Repository
Components 13
REST API
- Event Controller
src/main/java/com/example/factory/controller/EventController.java - Stats Controller
src/main/java/com/example/factory/controller/StatsController.java - Batch Response
src/main/java/com/example/factory/dto/BatchResponse.java
Event Ingestion
- Event Service
src/main/java/com/example/factory/service/EventService.java - Event Validation
src/main/java/com/example/factory/service/EventService.java - Deduplication
src/main/java/com/example/factory/service/EventService.java
Event Storage
- Concurrent Event Store
src/main/java/com/example/factory/store/EventStore.java - Event Repository
src/main/java/com/example/factory/repository/StoredEventRepository.java - Stored Event
src/main/java/com/example/factory/model/StoredEvent.java - MySQL Database
Analytics
- Time-Window Analytics
src/main/java/com/example/factory/service/EventService.java - Stats Response
src/main/java/com/example/factory/dto/StatsResponse.java
Other components
- API Client
Connections 13
- API Client → Event Controller: submits batch
README.md - Event Controller → Event Service: delegates ingestion
README.md - Event Service → Event Validation: validates events
README.md - Event Service → Deduplication: deduplicates events
README.md - Event Service → Concurrent Event Store: uses concurrent store
README.md - Event Service → Event Repository: persists events
README.md - Event Repository → MySQL Database: stores telemetry
README.md - API Client → Stats Controller: requests analytics
README.md - Stats Controller → Event Service: delegates analytics
README.md - Event Service → Event Repository: queries time window
README.md - Event Service → Time-Window Analytics: computes metrics
README.md - Event Controller → Batch Response: returns batch result
README.md - Stats Controller → Stats Response: returns metrics
README.md