All projects

Real-time Systems · Security · 2026

ULDPulse

Real-time air-cargo tracking: event-driven Go microservices with chaos-tested delivery and SOC-ready security telemetry.

uldpulse.radithyama.site
Scans acknowledged during a Kafka crash test
5,551
Scans acknowledged during a Kafka crash test
Lost or duplicated, verified scan-by-scan
0
Lost or duplicated, verified scan-by-scan
Scans safely buffered to disk while Kafka was down
3,017
Scans safely buffered to disk while Kafka was down
Airports in the simulated cargo network
6
Airports in the simulated cargo network

About the project

The problem, in plain terms

At an airport cargo terminal, freight travels in Unit Load Devices (ULDs): the pallets and containers that slot into an aircraft's hold. Ground teams need to know where every ULD is, whether it is too heavy for its spot on the aircraft, and whether the aircraft will balance. They need that live, not in a spreadsheet updated after the fact, because a lost scan can mean a missed flight or an unsafe load.

ULDPulse is an event-driven platform for air-cargo ground operations. Warehouse RFID and barcode scanners stream telemetry into a Go ingestion API. Kafka buffers the stream, a stream processor records every scan in PostgreSQL and projects live state into Redis, and a WebSocket server pushes each change to the operations dashboard within milliseconds.

On the dashboard, ground handlers see ULD positions on a warehouse map, loadmasters plan each aircraft's load with a centre-of-gravity optimizer, and security auditors triage live SOC alerts. A simulated multi-airport network flies ULDs between hubs, so the whole system can be explored in a browser.

It is designed for failure: a Kafka outage loses no telemetry, and every service emits SIEM-ready security events.

Key features

  • Live warehouse map and container manifest
  • Overweight alerts against each aircraft position's limit
  • Centre-of-gravity load optimizer for B737, A330 and B777F
  • Multi-airport network with live ETAs
  • SOC console with acknowledge, resolve and audit log
  • Sandbox that fires real detections through the pipeline

How it works

How a scan travels through the system

Every container scan follows the same path, from a handheld scanner on the warehouse floor to the dashboard, in milliseconds.

  1. 1

    Scanners

    RFID / barcode

  2. 2

    Ingest API

    Go

  3. 3

    Event stream

    Apache Kafka

  4. 4

    Stream processor

    Go consumer group

  5. 5

    Storage

    PostgreSQL + Redis

  6. 6

    Realtime hub

    Go WebSockets

  7. 7

    Dashboard

    Next.js + Auth.js

  1. 1

    Scanners

    Warehouse scanners send each scan (container id, weight, location, flight) over HTTPS with an API key.

  2. 2

    Ingest API

    Authenticates the scanner, validates the batch and publishes it to Kafka. A 202 response means the scan is durable.

  3. 3

    Event stream

    Six partitions keyed by container id: every container's scans stay in order while different containers process in parallel.

  4. 4

    Stream processor

    Applies each scan in one database transaction, ignores duplicates by event id, and runs the weight and security detections.

  5. 5

    Storage

    PostgreSQL is the permanent record. Redis holds live state, updated and broadcast in one atomic step so stale data never wins.

  6. 6

    Realtime hub

    Pushes every change to connected dashboards. Slow clients are dropped and resync from a snapshot instead of slowing others.

  7. 7

    Dashboard

    Warehouse map, flight loads, CG optimizer and SOC console, each gated by the signed-in user's role.

Reliability & security

Built to fail safely

  • No data loss when Kafka fails

    If the broker is unreachable, ingest fsyncs every batch to a disk spool before acknowledging it, then replays it in order once Kafka returns. A chaos test freezes and kills Kafka under load, then reconciles every acknowledged scan against the database.

  • Effectively-once processing

    Delivery is at-least-once, but every scan carries an event id that the database treats as unique, so retries and redeliveries never double-count a container.

  • Security telemetry for a SOC

    Every service logs structured JSON in Elastic Common Schema with stable rule IDs: impossible travel (a container 'seen' at two airports too quickly), weight tampering, invalid or revoked API keys and brute force.

  • Role-based access, enforced twice

    Ground Handler, Loadmaster and Security Auditor roles are checked in the Next.js backend-for-frontend and again in Go with a short-lived signed token. API keys are stored only as SHA-256 hashes.

Screenshots

Operations floor

Every container's position in the warehouse, updated live over WebSockets.

SOC console

Security alerts by rule family, with triage actions and an audit trail.

Next project

Memory Forensics Triage API

A serverless forensics pipeline on Google Cloud that analyses a RAM dump and automatically flags suspicious processes.