Hi. You should commit the message when you finish the process or set the Kafka auto commit to true. There is a kafka offset setting which will only read the latest message. auto.offset.reset = latest.
--------------------------------------------------------------------------- TSMC PROPERTY This email communication (and any attachments) is proprietary information for the sole use of its intended recipient. Any unauthorized review, use or distribution by anyone other than the intended recipient is strictly prohibited. If you are not the intended recipient, please notify the sender by replying to this email, and then delete this email and any copies of it immediately. Thank you. ---------------------------------------------------------------------------