Replying to Avatar Carman

Do people have a good strategy for syncing content through nostr?

For Mutiny when we sync nwc, dm, etc we save the highest timestamp of the event we last synced, however this doesn't work the best because relays send us them in descending order so if the app is closed before we process all the events, we do not fully sync all the events.

Have been thinking of switching it to instead have it save the last timestamp of the last EOSE we received. To try to better ensure we sync every message first.

Does anyone else have a better strategy?

Avatar
hodlbod 1y ago

Negentropy might be the best option for a complete sync. I haven't used it myself yet.

Reply to this note

Please Login to reply.

Discussion

Avatar
calle 1y ago

What is negentropy sync, where can I read up on it?

Avatar
Basanta Goswami 1y ago

https://github.com/hoytech/strfry/blob/master/docs/negentropy.md

Thread collapsed
Thread collapsed