Giter Club home page Giter Club logo

node-red-contrib-batcher's People

Contributors

ozomer avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

markrey

node-red-contrib-batcher's Issues

msg is being modified

Batcher works the exactly way I think it should be with one exception, the msg object is not beeing fully keept.
Seens Batcher is preserving only topic and payload, but I guess it should keep all the msg.
Maybe you could use something like RED.util.cloneMessage(..) : safely clones a message object so it can be reused to pass along each msg as is in the array output.
To keep compatibility, it could be a new option: "Preserve full msg object" (or something like that).

Batcher improvements

Something I would use if batcher has support to it is a way to clear the batch queue and flush it when needed.
Maybe it could accept msg.reset to clean up without send anything and msg.flush to send all is queued right away.

My use case right now is that I'm setting batcher to 20 slots and 10 seconds, but most of the time I have less then 20 messages and I know wich is the last one, so I could add the flush command to it so we don't need to wait for all the 10 seconds.

Just my 2c - Thank you.

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.