Skip to content

Clarify specification of ConsumerID for Kafka Pub/Sub Component #3697

@KrylixZA

Description

@KrylixZA

Describe the issue
Please could the Dapr documentation around the specification of ConsumerID in the Kafka Pub/Sub component be clarified. According to the documentation, I am able to set ConsumerID to {podName}, {appId}, {uuid}, or {namespace}. However, when utilising this property, no tangible difference is made to the consumer identifier as reflected in Kafka. According to the Components Contrib Kafka metadata.yaml file, it appears that setting ConsumerID is not supported.

I am using Confluent Cloud and all my pods simply reflect as some implementation {clientId}-{uuid}.

URL of the docs
https://docs.dapr.io/reference/components-reference/supported-pubsub/setup-apache-kafka/
Also clearly referenced in: https://docs.dapr.io/developing-applications/building-blocks/pubsub/howto-subscribe-statefulset/

Expected content
In my case, I am using Confluent Cloud Kafka, deploying StatefulSets into AKS, using the following configuration in the Pub/Sub component:

- name: consumerGroup
  value: "{appID}"
- name: consumerID
  value: "{podName}"
- name: clientID 
  value: "{appID}"

With the above configuration, I expect to see consumers reflect as:

my-dapr-app-0
my-dapr-app-1
my-dapr-app-2
...

But I simply see something as follows:

my-dapr-app-{uuid}
my-dapr-app-{uuid}
my-dapr-app-{uuid}
...

Given that the Kafka metadata.yaml appears not to reference ConsumerID, I think the docs should be clarified that this is not/no longer supported.

Screenshots
Unfortunately don't have any I can share publicly. But the above expectations should suffice.

Additional context
https://github.com/dapr/components-contrib/blob/master/pubsub/kafka/metadata.yaml

If this is supposed to be supported and actually a bug in the Kafka consumer, please LMK and I'll report the issue against the Components Contrib repo instead.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions