Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ability to commit offset of consumer

See original GitHub issue

Hi. There is an option for the Kafka Rest Proxy to commit offsets as you can see here. I want this options to be available for a consumer i created. something like :

var kafkaRest = require('kafka-rest');

var kafka = new kafkaRest({ url: restProxyServerUrl });

  { 'format': `avro`, 'auto.offset.reset': `smallest`, ``: `20000` }
  , function(error, consumer) {
    var listener = consumer.subscribe(topic);

    listener.on(`data`, function(messages) {

notice the consumer.commitOffset(); - it is like making a HTTP request to this with the consumerGroup and raw name from the instance.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

toaderflorincommented, Dec 19, 2016

Is there any update on this? From what I see, there isn’t support for this in the library.

killfillcommented, Aug 19, 2016


Is there a was to commit the offset manually, until we get this implemented? Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Kafka - When to commit? - Quarkus
It commits the offset, indicating that all the previous records from that partition have been processed. So, if a consumer stops and comes ......
Read more >
Kafka Consumer | Confluent Documentation
The offset commit policy is crucial to providing the message delivery guarantees needed by your application. By default, the consumer is configured to...
Read more >
KafkaConsumer (clients API) - Apache Kafka
Automatic Offset Committing. This example demonstrates a simple usage of Kafka's consumer api that relying on automatic offset committing. Properties props = ...
Read more >
Learn how Kafka Consumers work in Groups and ... - YouTube
Learn how Kafka Consumers work in Groups and how they commit offsets in Apache Kafka--Don't forget to subscribe to get more content about ......
Read more >
Kafka Consumer offset commit check to avoid ... - Stack Overflow
As the offset 10 was not committed, the new consumer will start reading again offset 10 before jumping to the next batch and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found