It’s understood you can do compression on the producer side. But topic has parameters for compression too. Does broker do compression if it’s not performed by producer?
Yes, if it has too. So if you submit gzip and the topic’s compression is lz4 it will uncompress and compress in the specified format. But if you submit gzip and the topic has producer or gzip as compression type, then it should honor it and leave it alone.
There is a Kip (improvement proposal) to allow for the compression level (e.g. gzip ‘9’) not sure how that will impact things if adopted.