Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

PULL REQUEST: https://github.com/apache/kafka/pull/5149 (WIP)

Motivation



~~In order~~ In order to use Kafka as the message broker within an Event Source architecture, it becomes essential that Kafka is able to reconstruct the current state of the events in a "most recent snapshot" approach.~~

This is where log compaction becomes an integral part of the workflow, as only the latest state is of interest. At the moment, Kafka accomplishes this by considering the insertion order (or highest offset) as a representation of the latest state.

The issue then occurs when the insertion order is not guaranteed, which causes the log compaction to keep the wrong state. This can be easily replicated when using a multi-threaded (or simply multiple) producer(s), or when sending the events asynchronously.~~

Public Interfaces

There are no changes to the public interfaces. 

...