Hi, You can take a look at:
https://azure.github.io/amqpnetlite/articles/azure_eventhubs.html Look at the "Filter" section. Most likely, you'll be able to implement a similar pattern. Hope this helps, Adrian. On Wed, Sep 22, 2021, 1:05 PM Gordon Sim <g...@redhat.com> wrote: > On Wed, Sep 22, 2021 at 6:54 PM Arun Koshal <akosha...@gmail.com> wrote: > > I plan to use Apache qpid proton C++ API for receiving messages from > Azure > > Event hub. I am able to implement a client and fetch the events. The > > problem is, whenever I restart my clients it reads all the events from > the > > event hub. > > > > A quick search revealed that Event hub provides stream offset with the > > events sent to the readers which the reader can remember. The reader can > > start reading from a new offset which it hasn't read so far. > > What is the mechanism in AMQP terms by which that is done? E.g. is it > a link property, a filter, ....? > > > I did a lot of searching in Qpid proton code and the C++ API, but could > not > > find a way to get the following: > > 1. the offset value when a message is received from event hub > > 2. a way to specify the offset from which to start reading messages, > while > > opening a receiver > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org > For additional commands, e-mail: users-h...@qpid.apache.org > >