I have three cases:
When the application is shut down, and then a few messages are sent on the topic, after running the application and consuming messages, the Current Offset is not updated.
When the application is running, I'm sending few messages at once. The Current Offset is set for the previous Latest Offset + 1.
Example: Current: 25, Latest: 27. I'm sending three messages. After consumption: Current 28, Latest: 30.
- When the application is running, I'm sending one message. The Current Offset is set for Latest Offset.
Example: Current: 25, Latest: 27. I'm sending one message. After consumption: Current 28, Latest: 28.
I think that the proper behavior is in case 3, meaning after consumption, the Current Offset is set to the Latest.