If you are starting learning Kafka, like me, you might be familiar with the extremely informative Robin Mofatt’s blog, https://rmoff.net . While informing myself about Kafka listeners in his blog post:
I saw the following listener configuration for the Docker container environment:
In this example the LISTENER_BOB is a kafka broker client, internal to the docker network, whereas LISTENER_FRED is an external client. My question is, assuming the docker network where kafka sits in is the usual bridge, and that I am mapping the kafka:9092 to localhost:9092 , shouldn’t the LISTENER_FRED listener still be configured as ‘kafka:9092’ but advertised to ‘localhost:9092’?
Thanks and kind regards,