Replies: 2 comments
-
It's not obvious what "last 100 messages" would mean in the context of a topic containing multiple partitions However, if you're just talking about a single topic partition, then yes you should be able to attach a consumer to that specific partition, fetch the end offset of the log and then seek to 100 messages before that and consume them |
Beta Was this translation helpful? Give feedback.
-
Yes, I meant what you wrote. I do not know how to implement it. Can you write an example or send similar examples? |
Beta Was this translation helpful? Give feedback.
-
I am writing a separate function that accepts a broker and a topic. Is there such a possibility in the sarama library? If there is, can you help me?
Beta Was this translation helpful? Give feedback.
All reactions