enable.auto.commit

The consumer setting that, when true, commits offsets automatically on a background timer.

In more detail

It is on by default and commits every five seconds in kafka-python. That is convenient but can commit records before you have finished processing them, so the course turns it off and commits manually.

Example

KafkaConsumer(enable_auto_commit=False)

Related terms

Taught in

References

Certification courses