Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

is there a way to get last message offset? #36

Closed
willin opened this issue Aug 21, 2017 · 3 comments
Closed

is there a way to get last message offset? #36

willin opened this issue Aug 21, 2017 · 3 comments

Comments

@willin
Copy link

willin commented Aug 21, 2017

ref #34, we have no idea when the application went die.

although we have recorded the message offset but it's only used when restarting startAfterOffset.

we want to make a daemon process, to check the queue offset and to diff from the one we store.

@willin willin changed the title is there a way to get laster message offset? is there a way to get last message offset? Aug 23, 2017
@amarzavery
Copy link
Collaborator

Based on the description it seems that you need EPH. We are working on an implementation
and it should be out shortly.

@amarzavery
Copy link
Collaborator

@willin - We have a new preview version "0.1.0" of the event hubs node.js client. This client was re-written from scratch. Please try the new version and let us know if you still see issues. You can find examples over here.

@amarzavery
Copy link
Collaborator

you can also do
const partitionInfo = await client.getPartitionInformation(); which will give you the information you need. The returned info will have the following properties as defined in the interface EventHubPartitionRuntimeInformation.

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

No branches or pull requests

2 participants