isolation.level

The consumer setting that decides whether records from open or aborted transactions are returned: read_uncommitted or read_committed.

In more detail

The default, read_uncommitted, returns records as soon as they are written. read_committed holds them back until their transaction commits and never returns aborted ones. Transactions only help if the consumers use read_committed.

Example

KafkaConsumer('results', isolation_level='read_committed')

Related terms

Taught in

References

Certification courses