Recovering a Lost Valve Command Reply

Recovering a Lost Valve Command Reply

Try Press Step to find where the 202 Accepted reply stops on its way back to the technician phone.

Recovering a Lost Valve Command Reply

Command replay

Track the phone, command service, and valve as evidence arrives at each boundary.

Technician phone

POST /v1/devices/{deviceId}/commands

Idempotency-Key · original key

Command type · symbolic command type

Target state · Open

Actor ID · symbolic actor

Reason · optional

API gateway and command service

Command request arrives

Device gateway and valve

Target · Open

  1. Phone
  2. API gateway and command service

The technician requests a valve opening. The phone keeps the key for that logical request.

Observe The phone shows Timeout as the 202 Accepted reply stops short, then recovers the original command ID and eventually changes from Accepted to Applied.
Explain The service had already stored and dispatched the command when the 202 Accepted reply was lost, so the retry matches the saved key and recovers the original command ID.

Technical boundaries. The request fields and response identifiers use symbolic values. This retry falls within the window covered by the saved key. The queue and device still need a command ID and their own duplicate-delivery rule, whose behavior is outside the trace.

Back to the chapter