Queue Acknowledgement and Replay

Queue Acknowledgement and Replay

Try Press Step once to track the pressure record from pump P4 and check when the gateway queue releases its copy.
Ack on delivery Message ID deduplication

The queue accepts the record

The queue has accepted a pressure record from pump P4. Follow its message ID through both acknowledgement policies.

Gateway queue

Record stored Durable copy ready P4 pressure
ID M

Uplink consumer

Waiting No delivery yet

Server database

Row absent No database write

Event trace

    Before each step, predict who still has the record and whether the row exists.
    Observe The P4 record leaves the queue at handoff under Ack on delivery. Under Ack after processing, the queue shows Unacknowledged after the lost reply, and replay leaves the database at Row unchanged.
    Explain The queue keeps the P4 record when the lost server reply leaves the consumer unable to acknowledge it. On replay, the server finds the existing row by message ID and reissues acceptance so the consumer can acknowledge.

    Technical boundaries. The comparison tracks one pressure record under two acknowledgement policies. The early-acknowledgement run has no alternate recovery path after the consumer crash. In the processing run, the server uses a unique message key to keep replay of that record from producing another database row.

    Back to the chapter