By Ether DataRequest data sample
Interactive publication
Back to the catalogue
Distributed systemsCase 04 of 05

Message-queue delay and reordering

Kafka, SQS, and similar queues delay and reorder delivery, so arrival order at a consumer is not production order. Slotting by arrival time misplaces events.

Class
Case to account for
Affects
2 conversions
01

Detection

Consumer arrival order disagrees with producer event time.

02

Mitigation

01
Slot by the producer's event time carried in the payload, not the consumer's receive time; handle out-of-order with watermarks.
03

Affected conversions

Timestamp + zonehour-of-week slot
OPEN
semantics
OPEN