kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joel Koshy <jjkosh...@gmail.com>
Subject Re: relation between async mode and compression
Date Wed, 25 Apr 2012 12:14:54 GMT
Hi Navneet,

>From docs, its not clear whether async mode and compression are related or
> independent. Can you please elaborate?
>

They are related in the sense that the DefaultEventHandler that is used in
async mode compresses a batch of messages when they are serialized.
However, compression is not tied to async mode. Sync mode can also use
compression, but it does not do batching.


>
> One more thing - compression definitely enhances performance, but is it
> true for async mode as well (assuming they are not related)?
>

Async mode basically enables batching of messages so its throughput gain is
orthogonal to that gained by compression.

Thanks,

Joel

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