← Back to panelCase file · ST-01
Plant batches on screen as they happen

GTAMB

RoleTeam platform · my parts: app, real-time layer, file pipeline
PeriodApr 2023 – now
Stack size11 parts
app installs · client teams

Our team's platform for following asphalt and concrete production at contractors' plants. I own the SCADA India app, the real-time layer that pushes batches to phones and control-room screens, and the plant file pipeline.

What was broken

Road and building departments buy asphalt and concrete from contractors' plants. To know what was mixed, when and to which recipe, engineers had to visit the plant, open its software or wait for paper. And when the message bus hiccuped, the screen went blank and nobody knew whether it was the plant or the software.

What I built

  1. 01The SCADA India Flutter app: work orders, plants, live batches, QC, photo and video uploads. Rebuilt in 2026 on Riverpod.
  2. 02A Redis subscriber that rebuilds itself when Redis goes away and comes back, while the service keeps answering REST.
  3. 03JWT-checked STOMP sessions: a 20-batch snapshot on subscribe, then live updates, routed per user.
  4. 04A Redis publisher with a bounded in-memory retry queue, so live pushes replay in order after a restart.
  5. 0534 JasperReports templates for batch and quality reports, and a plant file pipeline: USB uploader app, upload API with Tika and ClamAV checks.
app screens
report templates
real-time API handlers

How data moves

SCHEMATIC · GTAMB● SIGNAL
Plant PCbatch · drum · RMCPlant data APIteam · DB firstPostgreSQLtriggersRetry queuein memory · 20kRedispub/subReal-time APIself-healing · STOMPApp + control roomFlutter · browser

What broke, and how it holds now

INCIDENTST-01 · what broke

Redis disappeared mid-shift.

More than once in production, Redis went away: a container stopped by mistake, a password changed. Plant data kept landing in Postgres, but every live screen froze. Now the subscriber pings Redis every 5 seconds. When the ping fails it tears down its listeners and keeps serving REST, then rebuilds them when Redis answers. Live pushes wait in a bounded queue and replay in order.

Replay · break it yourself
Batch plant · mix temperature · 10 Hz● REDIS UP
Retry queue · pending0
Supervisor lag0.0 s
Lost from Postgres0
Peak backlog0

The incident from the case file, replayed. Pull the plug: every reading still lands in Postgres, and live pushes wait in a bounded queue. Plug it back: the subscriber notices on its next 5-second ping, rebuilds itself, and the queue replays in order.

What people see

Stack

  • Flutter
  • Riverpod
  • Spring Boot
  • PostgreSQL
  • Redis Pub/Sub
  • STOMP
  • JWT
  • JasperReports
  • Tika
  • ClamAV
  • Docker
Next case file · ST-02VM Track →Live trucks and honest fuel numbers