@Nicholas Ross - Thanks for the question and using MS Q&A platform.
It sounds like you are experiencing data loss when you pause and resume Event Hub Capture. This can happen if there are messages in the Event Hub that are not captured before Capture is paused, and those messages are lost when Capture is resumed.
One way to avoid this issue is to use Event Hub checkpoints. Checkpoints allow you to keep track of the last message that was successfully processed by your consumer application. When you resume Capture, you can use the checkpoint to start processing messages from where you left off.
Azure Event Hubs Checkpoint Store can be used for storing checkpoints while processing events from Azure Event Hubs.To use checkpoints, you need to enable them in your consumer application. Here is an example of how to use checkpoints in Java: Azure Event Hubs Checkpoint Store client library for Java - version 1.16.9.
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.