orbitdb / field-manual

The Offical User's Guide to OrbitDB
208 stars 43 forks source link

Wall clock for feeds #92

Open cristiano-belloni opened 6 years ago

cristiano-belloni commented 6 years ago

Feeds come with what seems a Lamport clock, which mean items in a feed are ordered relatively (first element has a 0 timestamp, second 1 etc).

When implementing a Twitter-like app, different feeds from other users have to be replicated and presented to the user. This poses a problem when trying to visualize them as they were temporally ordered, because we have no way to know the exact order of the union of two feeds.

A way to solve this would be letting users specify the UTC timestamp of their posts, but that would be easily abusable (users setting the timestamp in the future or in the past, for example). While a cool functionality, it would disrupt the concept of timeline.

This issue is to discuss a way of time-ordering different feeds in a reliable way.

nezzard commented 6 years ago

Any idea?

OR13 commented 5 years ago

I can't see a way to upgrade a lamport clock to a wall clock in a safe way...

https://medium.com/@sargun/on-time-4f4377e5280b

aphelionz commented 4 years ago

Moving to Field Manual for deeper discussion