Hello Chen, Kafka flushes data to disk (i.e. fsync) asynchronously. Based on the ack.mode it will return the response of the produce request to producer after it has been replicated (likely in memory) on N partition replicas.
Guozhang On Sun, Feb 26, 2017 at 1:39 AM, Jiecxy <253441...@qq.com> wrote: > Hi guys, > > Does kafka send the acks response to the producer after flush the > messages to the disk or just keep them in the memory? > How does Kafka flush the messages? By calling the system call, like > fsync()? > > Thanks > Chen > > -- -- Guozhang