I don't think that is possible since Kafka uses the file system cache for this.

-Dave

-----Original Message-----
From: Archie [mailto:[email protected]]
Sent: Monday, August 28, 2017 4:14 PM
To: [email protected]
Subject: Re: Is it possible to disable caching for some kafka topics?

What I mean by caching is that the messages are being stored in memory and 
consumers are also reading from the memory (instead of the disk). In this 
scenario, I would want messages related to topic A to be cached in memory.
And messages related to topic B don't have to be cached in memory. I want topic 
A to use the space in memory that would have been given to topic B

Thanks,
Archie

On Thu, Aug 24, 2017 at 12:04 PM, Archie <[email protected]> wrote:

> Hi,
>
> So I have a scenario in kafka where there are 2 topics : A and B.
> Topic A's consumers are online (and need to consume data fast) and
> topic B's consumers are offline. Since topic B's consumers are
> offline, I don't need to cache any message related to topic B right
> now and want topic A to get the whole cache. Is it possible to disable 
> caching for some kafka topics?
>
> Thanks,
> Archie
>
This e-mail and any files transmitted with it are confidential, may contain 
sensitive information, and are intended solely for the use of the individual or 
entity to whom they are addressed. If you have received this e-mail in error, 
please notify the sender by reply e-mail immediately and destroy all copies of 
the e-mail and any attachments.

Reply via email to