Add buffer kafka write with buffer as input