News for hackers. Stuff that matters.
Re:Google pub/sub released an ordering feature by dragonwriter on Friday October 02, 2020 @05:01AM (#24660589)
> Does adding timestamps not handle this case?

If you have one message source (a single thread or some kind of coordination), and the messages have lower frequency than the timestamp resolution, yes.

The farther you get from that, the more the answer is no.

Re:Google pub/sub released an ordering feature by amelius on Friday October 02, 2020 @08:15AM (#24661819)
Just make the source part of the timestamp?

(1,A) < (1,B) < (2,A) etc.

Also use serial numbers instead of true timestamps.

Re:Google pub/sub released an ordering feature by rsynnott on Friday October 02, 2020 @11:15AM (#24663488)
That way lies madness, and/or eventually accidentally writing your own Dynamo-paper database.