node-rdkafka icon indicating copy to clipboard operation
node-rdkafka copied to clipboard

sendOffsetsToTransaction: incorrect interface

Open BryanDollery opened this issue 3 years ago • 0 comments

  • node-rdkafka version 2.14.5

I'm trying to use producer.sendOffsetsToTransaction() but I'm having difficulty understanding how it can possibly work given that it accepts a consumer rather than an event. My consumer binds to topics through a regex and has many consumer groups performing different tasks when a message is received.

If I want to bind a producer tx to a consumed message, I should explicitly name the topic and group offset (found in the message), right? But, I can't.

If the interface is correct, how should this work?

TIA B

BryanDollery avatar Jan 24 '23 13:01 BryanDollery