Skip to content
Ikbal.

Engineering notes

Write-ups from production work on industrial gateways. Patterns and measurements only: no code, no client names, no internal identifiers.

  1. A 1000-device chaos test and the reconnect storm it exposed

    Before a protocol gateway went near production, I built a harness that kills, freezes and flaps 1000 simulated field devices. It found a synchronized reconnect herd that dropped 710 messages, a status flood, and a leaking metric. Jitter fixed the drops and cut median recovery in half, but it made the slowest device slower.

    Rust / OPC UA / Kafka / Chaos testing

  2. Noticing a dead field device in milliseconds, not 60 to 90 seconds

    A Modbus gateway only marked a device offline after ten failed polling cycles. Fixing that meant reacting to the first transport error, probing actively, catching half-open sockets, and then untangling the locks, queues and races that a faster failover exposed.

    Go / Modbus TCP / Kafka / Reliability

  3. Rewriting a live gateway without betting on the cutover

    A protocol gateway that talks to field equipment was ported to Rust. Instead of switching over and hoping, the new build runs in shadow mode next to the old one, with every write command disabled, while a diff tool compares their output message by message.

    Rust / OPC UA / Kafka / Migration