Releases: Blizzard/node-rdkafka
Releases · Blizzard/node-rdkafka
v0.9.0
New release version v0.9.0
Consumer API Changes
commit
synchronous methods nowthrow
errors in a similar pattern as the other throwable methods. They will be fulllibrdkafka
error objects with error codes, etc. Asynchronous methods are unchanged, as they return error objects in the callback.
Bug fixes
- Bug with
this
binding in producer write stream in previously published (now unpublished) version has been fixed.
v0.8.2
New release version v0.8.2
Producer API Changes
- Added new producer method,
setPollInterval(interval)
. If you simply want to poll for events on an interval, you can pass it here without needing to manage connections or disconnections. - Fixed some bugs that would be related to manually connecting/disconnecting when using the producer stream.
- Producer stream now only uses topic objects if topic options are provided.
Consumer API Changes
- Added new consumer methods,
commitMessage
andcommitMessageSync
. When committing a message instead of a topic partition, these methods will commit the proper offsets instead of the off-by-one issue seen prior.
v0.8.0
New release version v0.8.0
API Changes
- Produce method now supports sending a timestamp, which is permitted by broker version >= 0.10
- A side effect of this change is that the opaque parameter has now moved one to the right.
- Recommended way to pass a topic is now as a string
- RdKafka topic objects are now created and destroyed on use so they no longer stop disconnection or deadlock threads while they are waiting to be garbage collected (potential issue). Passing topics as a string avoids this issue. You can still pass topic objects if you need custom config, but there is a performance hit (~10% in most cases).
dr_cb
anddr_msg_cb
now properly supportNULL
vs.empty
payloads in delivery reports.Producer.poll
must now be called manually. Previously it was being called every time a message was produced, which was a gigantic waste of time and madeproduce
block on occasion.
Under the hood changes
librdkafka
upgraded to 0.9.4.- RW locks to make sure produce method no longer blocks.
v0.6.0
Changes:
- Producer produce is now a synchronous method that does not do Object enumeration to read its parameters.
- Graceful shutdown fixes due to changes in memory allocation in C++
- Various performance passes
- Mocha-ized end to end unit tests.
- Refactoring of C++ code to reduce number of unnecessary classes.