We need to investigate how to use the kafka
k8s service when topics have fewer replicas than there are kafka instances.
Background: we've noticed some oddities using the no-kafka client lib, connecting to kafka:9092
, if a kafka instance is lost and the topic isn't replicated to all instances. The client sometimes seems to react as if the topic does not exist.
In 0.10.1 the official java client seems to deprecate other means of connection than bootstrap.servers
. This implies awareness of the FQDN or IP of each broker. A kubernetes service, on the other hand, is basically a round-robin proxy.