Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure Function Event Hub Trigger one batch at a time #421

Open
Fresher900 opened this issue Mar 7, 2022 · 0 comments
Open

Azure Function Event Hub Trigger one batch at a time #421

Fresher900 opened this issue Mar 7, 2022 · 0 comments

Comments

@Fresher900
Copy link

I am working on a project which gets change notifications through Event Hubs(https://docs.microsoft.com/en-us/graph/change-notifications-delivery).

My Azure Function(Event Receiver) receives the events in batches. After receiving each batch, it processes the data (does a bit of work). The second batch updates the value set by the first batch.

The Event Hub has 3 partitions.

The problem arises when multiples batches arrives at the same time. The second batch comes in before the first batch has updated the value.

Is there a way to receive only one batch at a time?

I am not bothered about the order of batches, but I want to get the next batch trigger only after the first batch is processed.

Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant