On Mon, Nov 4, 2019 at 11:05 PM Brian Candler <[email protected]> wrote:

> On 02/11/2019 04:00, Sijie Guo wrote:
> > 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.
>
> That reminds me of another question I meant to ask.  When a message is
> published, is the publish time assigned by the client or by the broker?


Currently it is assigned by the client.



>
> And does Pulsar do anything to ensure that publish time is monotonically
> increasing on a given topic?
>

Currently not. So I said it is a best-effort and doesn't offer any
guarantees.

We have talked about adding a broker-side timestamp and ensure it is
monotonically increasing. However it is not done yet.


>
> Since timestamps are at millisecond resolution, and you have two clients
> or two brokers with clocks that aren't properly synchronised, ISTM you
> could get values which aren't monotonic.
>
> Thanks,
>
> Brian.
>
>

Reply via email to