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.
In more detail
A client first connects to a bootstrap server, then receives cluster metadata listing each broker's advertised address and reconnects there. If the advertised address is localhost or an internal IP address, clients in other containers cannot reach it. The course advertises the container name, which Docker DNS resolves on the shared network.
Example
--advertise-kafka-addr m01l02-broker:9092Related terms
- --kafka-addr — The Redpanda start flag that sets the address and port the broker listens on for Kafka clients.
- bootstrap servers — The broker address, or list of addresses, a client contacts first to discover the rest of the cluster.
- DNS — The system that turns names such as learnsome.tech into IP addresses.
- container name — A human-readable name you give a container with --name, so you can refer to it without copying its ID.
- metadata — Data that describes other data, such as a file name, a creation time or a package version.
Taught in
- Stuck On One Record — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Why A Log And Not A Queue — Apache Kafka & Event Streaming
- Starting A Broker And Reading Its Metadata — Apache Kafka & Event Streaming