Are you trying to get something like FIFO (First In, First Out)?
Check this out: https://medium.com/@jeffhollan/in-order-event-processing-with-azure-functions-bb661eb55428
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am working on a project which gets change notifications through Event Hubs(https://learn.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.
Are you trying to get something like FIFO (First In, First Out)?
Check this out: https://medium.com/@jeffhollan/in-order-event-processing-with-azure-functions-bb661eb55428
@Bruno Lucas has answered most part of the question. Thanks to you @Bruno Lucas
Additionally you can try to set the cardinality to one in the function.json and test it at your end.