Git Product home page Git Product logo

Comments (6)

twmb avatar twmb commented on June 17, 2024

I think this is a good idea, but I don't want to merge the behavior with CommitRecords, because merging it would mean no synchronous usage CommitRecords.

I think this can be done with a new option and a new client method:

func AutoCommitMarks() GroupOpt

func (cl *Client) MarkCommitRecords(...*Record)

I'm not yet 100% settled on the names, but I'm leaning heavily towards what's proposed above. I'll commit this probably tomorrow, as a part of v0.11.0, which will come with a few API breakages (detailed in #62).

from franz-go.

vtolstov avatar vtolstov commented on June 17, 2024

nice, will look at it after merging

from franz-go.

twmb avatar twmb commented on June 17, 2024

Is the goal here to also opt out of the current behavior that allows any prior polled records to be committed during the next poll?

Right now if you poll offsets 0 through 5, the next poll will allow 5 to be committed. I can't decide whether to opt out of this such that you must MarkCommitRecords, or whether to keep this behavior so that you only need to use MarkCommitRecords if you want to have records available for commit while processing a batch slowly.

from franz-go.

twmb avatar twmb commented on June 17, 2024

I'm leaning towards making MarkCommitRecords required, I think that feels more understandable and gives more control.

from franz-go.

twmb avatar twmb commented on June 17, 2024

This has been implemented in 31ed46b

from franz-go.

twmb avatar twmb commented on June 17, 2024

And tagged in v0.10.3

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.