tulios / kafkajs

A modern Apache Kafka client for node.js
https://kafka.js.org
MIT License
3.7k stars 524 forks source link

seek consumer to timstamp, ie offsetsForTimes functionality? #653

Closed pimpelsang closed 3 years ago

pimpelsang commented 4 years ago

Any plans to implement this feature to consumer or admin client?

As in java https://kafka.apache.org/0102/javadoc/org/apache/kafka/clients/consumer/KafkaConsumer.html#offsetsForTimes(java.util.Map)

or librdkafka wrapper https://blizzard.github.io/node-rdkafka/current/Client.html

Nevon commented 4 years ago

There is an open PR for this, but it's not in an active state: #604.

Is this something you could help drive forward?

tulios commented 3 years ago

604 is merged and the feature was released on 1.14.0

hanspoo commented 2 years ago

Hello and thanks for the great job !! I have an application that query a topic from a timestamp, kafkajs support this, it is working fine, but it requires to create a consumer group, and the broker administrator is asking to me to stop creating these ephemeral /volatile consumer groups, ¿ is there a chance to use this without a consumer group ?

Nevon commented 2 years ago

KafkaJS' consumer is very much built around the concept of consumer groups, and we don't have any mechanism for doing manual consuming without consumer groups. You'll either have to re-use the same consumer group or use a different tool for this use-case.

hanspoo commented 2 years ago

Thank you

El jue., 13 de enero de 2022 1:10 p. m., Tommy Brunn < @.***> escribió:

KafkaJS' consumer is very much built around the concept of consumer groups, and we don't have any mechanism for doing manual consuming without consumer groups. You'll either have to re-use the same consumer group or use a different tool for this use-case.

— Reply to this email directly, view it on GitHub https://github.com/tulios/kafkajs/issues/653#issuecomment-1012281964, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFEQ43QVHXYZMHOA7RRSTDUV32N5ANCNFSM4LEEJJXQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>