What do you mean by "timeout a consumer"?

Given that a consumer calls `poll()` and `poll()` might also return with no data, the consumer code is in full control anyway...

I want to make sure
a certain message gets pushed if not then exit.

This sounds like writing. How it it related to a consumer?




On 8/20/24 12:34 PM, Keith Brown wrote:
Thankyou.
Is there a way to timeout a consumer after 60secs? I want to make sure
a certain message gets pushed if not then exit.

On Tue, Aug 20, 2024 at 8:29 AM Tiansu Yu <tiansu...@klarna.com.invalid> wrote:

You need to run on a separate process for producer and consumer (on the same 
machine is fine).

Read it here for simple CLI consumer, e.g. 
https://www.conduktor.io/kafka/kafka-consumer-cli-tutorial/

On 20. Aug 2024, at 14:15, Keith Brown <keith6...@gmail.com> wrote:

I am new to kafka. I started the server and created a topic.

Using the CLI, is it possible to send AND receive the message and
exit? Or do I need to have a separate process for it?


Reply via email to