Giter Club home page Giter Club logo

Comments (7)

twmb avatar twmb commented on August 24, 2024 1

👍 sounds good! Plrease reopen the issue if this isn't worked, I think this is closed.

from franz-go.

twmb avatar twmb commented on August 24, 2024

There is a function, RetryBackoffFn. The default strategy is to start at 100ms and exponentially backoff with jitter to 1s (this mirrors the behavior described in KIP-144).

I think the timestamp resolution in your logs may not be fine grained enough -- try adding milliseconds with .999 if this is from time.Format.

I'd be opening to changing the default backoff to 250ms rather than 100, and bumping the max backoff to 2.5s or 5s, though. Let me know if upping the time format resolution shows some backoff?

from franz-go.

vtolstov avatar vtolstov commented on August 24, 2024

wow, nice. if i want to not timeout retries and retry always what params i need to specify ?
my use-case if service start consuming and connection broken - retry forever

from franz-go.

twmb avatar twmb commented on August 24, 2024

Is this for producing, or general admin requests?

Producing already has unlimited retries by default, with acks == -1.
Admin requests have a 1min timeout. I recommend keeping that, but there does exist a RetryTimeout option.

from franz-go.

vtolstov avatar vtolstov commented on August 24, 2024

this question for consuming. so i'm run client.PollFetches and want it connection is dies - auto reconnect to kafka brokers and continue fetching.

from franz-go.

twmb avatar twmb commented on August 24, 2024

That's the default behavior already, and I think that's the behavior for any client. Any kafka client should continue to reconnect for fetching (with some backoff)

from franz-go.

vtolstov avatar vtolstov commented on August 24, 2024

ok fine, now experimenting with backoff, thanks

from franz-go.

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.