Giter VIP home page Giter VIP logo

kafkajs-stream's People

Contributors

dependabot[bot] avatar kambing86 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

kafkajs-stream's Issues

Consumer performance problem

Hi! I've implemented a consumer stream based on your code and found that skipping batch messages can lead to huge performance issues in the case of a large batch. For example, if the stream client limits the load by pausing/resuming the stream every 10 messages and the batch contains 1,000 messages, then the Kafka client will load 1,000, 990, 980, and so on. To fix this, you should try to wait for the already loaded batch to resume instead of skipping it (but not for longer than the heartbeat interval).

Further options for autoCommit relevant flags

Hi,

thanks great for the work. It's a perfect lib for using kafkajs together with stream. However, could you provide more options to set autoCommit relevant flags. Just like the configs of kafkajs:

Manual committing

consumer.run({
    autoCommit: false,
    eachMessage: async ({ topic, partition, message }) => {
        // Process the message somehow
    },
})

We want to consume the kafka without offset commit. If possible, sincerely thousand thanks.

Best regards,
Kevin

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.