When we subscribe to an EventHub for a particular type. I see my worker keeps processing the old messages as well. Is there any way to get rid of older messages in the event hub or change the partition's offset value at a desired message manually? As of now our worker doesn't keep track of processed messages when the worker reboots the Checkpoint is not save and the old messages are re-processed... So Can anyone share a way to get rid of this issue?
Thanks in Advance, Radha.
You cannot delete messages from an Azure Event Hub, but I'm going to provide a couple of alternatives.
Imagine EventHub as a persistent Stream of events stored on cloud. You will need to maintain the Cursor of where to start reading from. There is no other way around. You will need to checkpoint to be able to do this. Most of the Messaging users confuse with the Topic semantics in EventHubs. This existing question can bring in clarity in that direction.
more on Event Hubs...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With