Streaming and Change Data Capture · Lesson 3 of 5 · 16 min

Out-of-order and late events

Events do not always arrive in the order they happened. Plan for it.

Networks, retries and partitions in Kafka mean an event can arrive minutes or hours after a later one. If your consumer simply applies events in the order they arrive, an old shipped can overwrite a newer delivered.

Here are events sorted by arrival. Watch the lsn column: sometimes it goes backwards.

← Previous: Rebuilding the current state