background

for a fairly performance compare between pulsar and kafka,we need to modify kafka configuration to align with pulsar,consider kafka did‘nt have an WAL mechanism to make the data safety, the data will first save in memory then respond to the client,and the data in memory will async flush to the persistent disk,so the data have the chance to lost , but pulsar use journal disk as WAL mechanism,so it can make sure every message written to pulsar will not lost。

configuration need to tune in kafka

conclusion

If we want to achieve the same safety level as pulsar provided in kafka, we can modify the above configuration in kafka broker and producer, but it will impact the performance of kafka.

supplement some best practice

some related tech detail