improve kafka performance and notes