Allow overriding of Kafka configurations per producer/consumer #1412
Labels
area/api
area/broker
Kafka Broker related issues
area/channel
Kafka Channel related issues
area/control-plane
area/data-plane
kind/feature-request
triage/accepted
Issues which should be fixed (post-triage)
Problem
From my understanding, configurations for producers and consumers are determined by a single config map, plus or minus a couple of specific properties such as group.id. I would like to be able to control some more properties on a case-by-case basis, and I'll focus on a specific example: auto.offset.reset. Some of my applications may be fine with receiving the same event multiple times, while others may not be able to (or may not want to) understand past events, but I have to choose exactly one per dispatcher. Since the general operation for updating a Trigger is to recreate the Trigger, this results in a new consumer group (and therefore a new offset).
Another similar option on the producer side would be the acks, where we may want higher throughput at the risk of losing some data.
Persona:
Which persona is this feature for? Event producers and event consumers.
Exit Criteria
I can set a property on a Trigger, SinkBinding, etc. that can change the default behavior of a single producer or consumer.
Time Estimate (optional):
How many developer-days do you think this may take to resolve? Based on my quick look into the code, there are events for new egresses and a map for consumer configs that gets instantiated on each new consumer. I would hope to be able to reference labels, annotations, etc. on the Trigger that can override the properties for that particular consumer. That doesn't seem too difficult to iterate over an incoming egress, but naming conventions and ensuring this doesn't break existing users could mean more discussion points/analysis.
Additional context (optional)
The text was updated successfully, but these errors were encountered: