hhkbbb
hhkbbb

Reputation: 79

What do epoch, sequence number, offset, owner, token mean in azure event hubs?

What do the epoch, sequence number, token, which is stored through the consumer group, mean?

The following forms are stored in azure Blob storage :

{  
   "Offset":"8251440",
   "SequenceNumber":10576,
   "PartitionId":"11",
   "Owner":"host-93e93907-df5f-4643-a784-5931e8fb787f",
   "Token":"24f1c215-688f-462f-b78f-142943ab123a",
   "Epoch":2437
}

I want to know what these mean

Upvotes: 0

Views: 1545

Answers (1)

TheGeneral
TheGeneral

Reputation: 81483

Its times like these that you need to realize there is a world of documentation, you seldom have to guess with Microsoft

Lease.Epoch Property

Gets or sets the epoch year of the lease, which is a value you can use to determine the most recent owner of a partition between competing nodes.

Lease.Offset Property

Gets or sets the current value for the offset in the stream.

Lease.Owner Property

Gets or sets the host owner for the partition.

Lease.PartitionId Property

Gets the ID of the partition to which this lease belongs.

Lease.SequenceNumber Property

Gets or sets the last checkpointed sequence number in the stream.

Lease.Token Property

Gets or sets the lease token that manages concurrency between hosts. You can use this token to guarantee single access to any resource needed by the IEventProcessor object.

Upvotes: 2

Related Questions