0
votes

Does anyone know if there is a global sequence number for Events in Azure Event Hubs (part of Service Bus)?

I know that you can get the sequence no and the offset from EventData but that is only in order for the partition. I need the sequence number across the whole event hub (ie all partitions). Cheers

1
If you are looking for a number that tells you in what order events have been received (or processed) I think that it is not there. It would mean that there need to be extensive communication between partitions to determine the right number and that will have a negative impact on the performance.Peter Bons
You can use the "PartitionKey + SequenceNumber" to identify a message but no there is no global id.Thomas

1 Answers

0
votes

NO - there is no notion of Global Sequence Number for Event Hubs (ServiceBus). SequenceNumber is local to the EventHubs Partition. Same SequenceNumber's can occur on 2 partitions.