bootstrap servers
The broker address, or list of addresses, a client contacts first to discover the rest of the cluster.
In more detail
After the first connection, the client asks for metadata and then talks directly to whichever broker leads each partition it needs. You do not have to list every broker, but listing more than one lets the client start even if one is down.
Example
KafkaProducer(bootstrap_servers='m02l01-broker:9092')Related terms
- advertised address — The host name and port a broker tells clients to use when they connect back to it, set in Redpanda with --advertise-kafka-addr.
- metadata — Data that describes other data, such as a file name, a creation time or a package version.
- KafkaProducer — The kafka-python class that buffers records, batches them and sends them to Kafka in the background.
- KafkaConsumer — The kafka-python class that reads records from Kafka topics, joins consumer groups and commits offsets.
Taught in
- The Error Storm That Fixes Itself — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Replay Everything Since Eleven — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Stuck On One Record — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Twelve Lines Instead Of Four Hundred — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Two Controllers At Once — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- A Producer In Python — Apache Kafka & Event Streaming
- A Consumer In Python — Apache Kafka & Event Streaming