Problem

A comment takes several minutes to sync to online devices. The comment should appear immediately (within 3 seconds) after it is published, for online web sites and connected nodes

Solution

When a peer requests comment discovery of a document, and when a new comment comes in, we should push to the peer who was recently discovering.

# Solution 1 - TS

There are probably some bugs in the frontend that prevent us from using the existing system properly. The existing daemon (discover API + activity feed) should allow the UI to remain up to date within 15-20 seconds of content being updated. So if your UI ever lacks content that is older than 20 seconds, it is probably an issue in the TS code.

# Solution 2 - Peer Syncing

The daemon already knows what the user wants to have live-updated because of the discover requests. If the daemon tells its peers that detail, then the peers may nudge the daemon immediately when new content is available.

This should allow the users to wait for only 3 seconds between activity and it appearing on their friend's screen.

Do you like what you are reading?. Subscribe to receive updates.

Unsubscribe anytime