flush
A producer call that sends every buffered record immediately and waits until each request has completed.
In more detail
Because send only queues records, a program that exits without flush or close can lose them. The course calls flush at the end of every producer and times it to compare acks and linger settings.
Related terms
- KafkaProducer — The kafka-python class that buffers records, batches them and sends them to Kafka in the background.
- record batch — A group of records sent to the broker together in one request, instead of one request per record.
- linger.ms — The producer setting for how many milliseconds to wait for more records before sending a batch that is not yet full.
Taught in
- Two Copies Of One Service — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Green Tests, Red Production — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- The Setting That Came Back — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Forty Minutes To Start — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Acknowledgements: What Acks Means For Durability — Apache Kafka & Event Streaming
- Batching, Linger And Throughput — Apache Kafka & Event Streaming
- Duplicates Are The Default — Apache Kafka & Event Streaming
- The Transactional Outbox — Apache Kafka & Event Streaming