kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ali Akhtar <ali.rac...@gmail.com>
Subject Re: Removing kafka topic contents from Java
Date Mon, 24 Oct 2016 15:39:23 GMT
There isn't a java API for this, you'd have to mess around with bash
scripts which I haven't found to be worth it.

Just let the data expire and get deleted. Set a short expiry time for the
topic if necessary.

On Mon, Oct 24, 2016 at 6:30 PM, Demian Calcaprina <calcacuervo@gmail.com>

> Hi Guys,
> Is there a way to remove a kafka topic from the java api?
> I have the following scenario:
> We have a subscription service, which returns responses to subscribed
> clients through kafka topic. Per subscription, we create a new kafka topic
> and send the data by publishing in this new topic. And, when the
> subscription ends, this topic is not needed anymore, so I would like to
> purge it so that it does not store data it will not be used anymore.
> Does it make sense?
> Thanks!
> Demian

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message