-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add properties for producer configuration to Output Binding Attribute definition #57
Conversation
@brandonh-msft the strategy we have adopted to expose Kafka settings was to use the host.json file, mapping to class However it limits setting distinct values for each producer. We can revisit the ones we think that should be overwritten on topic/producer level (i.e. Idempotence). For Idempotence we need to investigate what does it mean for a producer since it is the only place where a fatal, un-recoverable state is reached. OT: we need to sync the usage of |
Yeah I noticed this as well; we had the
Again I'll look to you/Ryan for expertise on this. What do consumers expect? What makes sense in Kafka-land?
Understood, my code followed traditional .Net rules but I have been working to "undo" these changes when I catch them. feel free to block my PRs on it. We could/should use StyleCop to enforce this - I saw the support was added to the project, but it must not enforce the rule one way or another. |
src/Microsoft.Azure.WebJobs.Extensions.Kafka/Output/KafkaAttribute.cs
Outdated
Show resolved
Hide resolved
1fe54b7
to
3275ce7
Compare
… control what the defaults are. NOTE: This may necessitate updaing the comments on these properties in the future
Agreed. We should be consistent one way or the other. And yeah, StyleCop should enforce the rule whatever we pick. |
Ok, for all producers vs particular producers, how do other bindings work? Does EventHubs binding have a config that applies to all producers, or allow you to customize each? I would imagine that having some defaults in host.json works and makes sense, but then allowing you to override that at a single implementation level would be the way to go. does that make sense here? |
I don't really understand the idempotence:true setting on the producer in all honesty. |
Targeting #11
Would appreciate review of this; since we're just piping them down in to the Kafka
ProducerConfig
object, I'm not sure there's any additional work needed.