Giter VIP home page Giter VIP logo

Comments (18)

fbeltrao avatar fbeltrao commented on July 21, 2024 2

We already have so many, adding just for the sake of having all might in turn cause the configuration to be over complicated.

from azure-functions-kafka-extension.

fbeltrao avatar fbeltrao commented on July 21, 2024 2

I like your proposal. For Idempotence we need to check how we handle errors in our producer

from azure-functions-kafka-extension.

fbeltrao avatar fbeltrao commented on July 21, 2024 1

My suggestions would be for you to take a look at the librdkafka and Confluent.Kafka configuration docs and propose what settings should be exposed in the function.

I would start with settings that affect performance and throughput. Settings about max message size could be important too, in case we need to support topics with large messages.

At the end we should add the newly exposed options in our documentation section.

Does it help @brandonh-msft ?

from azure-functions-kafka-extension.

fbeltrao avatar fbeltrao commented on July 21, 2024 1

Are those consumer or producer related settings? It is unclear to me.
Regarding commit configuration: we are doing manual commits, therefore enable.auto.commit and auto.commit.interval.ms will not be used/exposed.

from azure-functions-kafka-extension.

ryancrawcour avatar ryancrawcour commented on July 21, 2024 1

Can someone please update the docs and send a PR for bullet point 2 then. sounds like it's done.

from azure-functions-kafka-extension.

brandonh-msft avatar brandonh-msft commented on July 21, 2024

To help in somebody picking this up, can we define "important" in this issue?

from azure-functions-kafka-extension.

brandonh-msft avatar brandonh-msft commented on July 21, 2024

perfect, thanks

from azure-functions-kafka-extension.

ryancrawcour avatar ryancrawcour commented on July 21, 2024

@brandonh-msft is this* something you're going to tackle?

  • take a look at the librdkafka and Confluent.Kafka configuration docs and propose what settings should be exposed in the function.
    At the end we should add the newly exposed options in our documentation section.

from azure-functions-kafka-extension.

brandonh-msft avatar brandonh-msft commented on July 21, 2024

you can put this on my backlog but i'm tackling #44 first

from azure-functions-kafka-extension.

ryancrawcour avatar ryancrawcour commented on July 21, 2024

Ok, assigned to you

from azure-functions-kafka-extension.

brandonh-msft avatar brandonh-msft commented on July 21, 2024

K so right now, looking at Global configuration properties in librdkafka docs I'm thinking:

property proposed name description
message.max.bytes MaxMessageBytes Maximum transmit message size.
enable.auto.commit AutoCommit Automatically and periodically commit offsets in the background.
auto.commit.interval.ms AutoCommitIntervalMs The frequency in milliseconds that the consumer offsets are commited (written) to offset storage. (0 = disable)
batch.num.messages BatchSize Maximum number of messages batched in one MessageSet.

It's not clear to me if some of those are implementations we'd have to code up (autocommit, for instance) or if it's something we specify on the msg that's sent and the protocol/receiver takes care of it. Would be good to get some clarity there if you guys know off the top of your head.

Nothing else is standing out as either applicable to sending messages, or particularly useful.

from azure-functions-kafka-extension.

brandonh-msft avatar brandonh-msft commented on July 21, 2024

yeah TBH i'm not sure either; i agree it's not super clear in the docs whether it's producer related or not. I just kinda guessed.

So now considering just:

property proposed name description
message.max.bytes MaxMessageBytes Maximum transmit message size.
batch.num.messages BatchSize Maximum number of messages batched in one MessageSet.

from azure-functions-kafka-extension.

ryancrawcour avatar ryancrawcour commented on July 21, 2024

Ok. let's start with these. and when people request others or want extra features that are unblocked by exposing others, then we can go add them.

from azure-functions-kafka-extension.

fbeltrao avatar fbeltrao commented on July 21, 2024

Not sure if we should expose:
enable.idempotence

source: https://github.com/edenhill/librdkafka/blob/master/CONFIGURATION.md

from azure-functions-kafka-extension.

brandonh-msft avatar brandonh-msft commented on July 21, 2024

After some more digging found these are all the knobs even possible to set w/ the Kafka .Net SDK - do we just expose them all?
image

from azure-functions-kafka-extension.

brandonh-msft avatar brandonh-msft commented on July 21, 2024

fair enough - it doesn't look like, though, i can tweak the pieces I called out earlier after looking at what the .Net SDK exposes in ProducerConfig - which of the above do you think we'd want to expose, then? Perhaps just the EnableIdempotence? I can see value in the Timeouts, BatchNumMessages, and MessageSendMaxRetries, though.

from azure-functions-kafka-extension.

ryancrawcour avatar ryancrawcour commented on July 21, 2024

Yeah, go for the simplest config that enables the majority of scenarios. We can start exposing more config options as developers using this start requesting additional features. Too many knobs and dials get confusing

from azure-functions-kafka-extension.

ryancrawcour avatar ryancrawcour commented on July 21, 2024

@brandonh-msft What's the status of this? In progress? Or complete?

from azure-functions-kafka-extension.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.