You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Olof Johansson <ol...@gmail.com> on 2014/12/23 15:38:54 UTC
Treating a specific topic as in-memory only
Hello,
I have a specific use-case where I am not allowed to persist a certain kind
of events. The events can be kept in memory, but not written to the disk.
Is this even possible with Kafka? Ideally I am looking for a per topic
configuration to disable the writing to disk.
The durability of the topic still need to come from re-syncing with the
replicas.
Thanks!
Re: Treating a specific topic as in-memory only
Posted by Magnus Edenhill <ma...@edenhill.se>.
Hi,
you could configure the topic to reside on a tmp-fs mount (i.e., in memory
filesystem with no disk backing).
/Magnus
2014-12-23 15:38 GMT+01:00 Olof Johansson <ol...@gmail.com>:
> Hello,
>
> I have a specific use-case where I am not allowed to persist a certain kind
> of events. The events can be kept in memory, but not written to the disk.
>
> Is this even possible with Kafka? Ideally I am looking for a per topic
> configuration to disable the writing to disk.
>
> The durability of the topic still need to come from re-syncing with the
> replicas.
>
> Thanks!
>