Brian,

First of all, I would like to clarify a bit about event time and publish
time. Currently there is no operations around event time.
The closest we have offered in Pulsar is seeking (or rest-cursor) by
publish time. Although the API is still a best-effort by doing binary
lookup.

Secondly, if you are looking for opening a Reader by publish time. I don't
think there is such a method in the "reader" API.
Although it should be quite straightforward to add one in the PulsarClient
to open a reader by publish time. The implementation is already in place.
A reader is a consumer with non-durable subscription. The reader
implementation is based on the consumer implementation.
Consumer already supports seek by publish time. We can just expose that to
Reader as well.

Finally, contributions are very welcome!

- Sijie

On Fri, Nov 1, 2019 at 8:12 PM Brian Candler <[email protected]> wrote:

> When using the "reader" API, is there a way to get the message ID
> closest to a given event time?
>
> That is, like "reset-cursor" on subscriptions, but for the reader API.
> At the moment I can only see how to start from the very beginning or the
> very end of a topic.
>
> I couldn't find an existing FR on github, but I can open one if required.
>
> Thanks,
>
> Brian.
>
>

Reply via email to