[azeventhubs] Processor optimization to not list checkpoints when no ownership changes #22783
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Event Hubs
needs-team-attention
This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Feature Request
I noticed that in the
Processor#dispatch
function, that is called every 10s by default, all the checkpoints are being fetched but during most of the time (i.e. when no ownership is being re-shuffled) those checkpoints end up just not being used. There is an opportunity to save a lot of calls to the checkpoint store, and save $. Could it be optimized so checkpoints are only fetched when necessary?The text was updated successfully, but these errors were encountered: