Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Design idea for instant replies #17

Open
estebanabaroa opened this issue Oct 4, 2023 · 2 comments
Open

Design idea for instant replies #17

estebanabaroa opened this issue Oct 4, 2023 · 2 comments

Comments

@estebanabaroa
Copy link
Member

Motivation: instant replies are important for sites like 4chan. The IPNS updates can only occur every X minutes. Also useful for reddit live threads.

Design idea for instant replies

a pubsub topic named "<subplebbitAddress><postCid>"

peers that want instant replies join the pubsub. whenever a peer receives the challenge verification for their reply, they publish the publication from the challenge verification to the pubsub (publication will now need to contain a comment update signature from sub owner)

whenever a peer receives a message in the pubsub, he validates the message with subplebbitAddress signature and postCid

whenever a peer joins the pubsub, he receives all messages posted in the last 10 minutes (older than 10 minutes are available in the comment update so not needed)

design idea for instant posts in a subplebbit

a pubsub topic named "<subplebbitAddress>timestamp600" (timestamp newer than 600 seconds)

same exact same strategy as replies, execpt what is being validated is timestamp instead of postCid

downsides

  • posting replies is not as anonymous, your IP can more easily be linked to your reply
  • not scalable to do using a pubsub provider, needs to be P2P, to support the web/mobile user we'd need to use a webrtc pubsub implementation, which needs some kind of centralized signaling server (maybe not, I think IPFS is implementing how to do webrtc without centralized signaling), can use more than one signaling server and they usually dont censor cause all p2p messages are e2e encrypted
  • since pubsub provider can't be used, and webrtc needed, not possible to do over tor, so not as anonymous
@Rinse12
Copy link
Member

Rinse12 commented Nov 24, 2023

Since we changed the plebbit.publishInterval, subplebbit updates are pretty fast. If I edit a subplebbit in CLI I can see the new ipns with the change propagated in the daemon in about 10s. So there may not be a need for this idea imo. We should wait and see

@estebanabaroa
Copy link
Member Author

estebanabaroa commented Jan 3, 2024

Since we changed the plebbit.publishInterval, subplebbit updates are pretty fast. If I edit a subplebbit in CLI I can see the new ipns with the change propagated in the daemon in about 10s. So there may not be a need for this idea imo. We should wait and see

that's true should wait and see, it'll probably only be needed when subs have tens of thousands of users. I guess it's low priority for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants