kafka  code study