libp2p / libp2p/research-pubsub

Reverse PubSub ?

Open
#14 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
73
Forks
5
PR merge metrics
No merged PRs in 30d

Description

Pubsub messaging is by default a N publishers to M listeners.

When you start adding signing (https://github.com/ipfs/notes/issues/236) you get a 1 publisher to N listeners configuration. (The publishing private key can be copied so it's more like +→N, but I'm going to ignore this)

I have the opposite need (N --> 1) as well:

Regular PubSub: 1→N

  • 1 publisher publish messages for N subscribers
  • subscribers can read the message and verify that it comes from the publisher

Reverse PubSub: N→1

  • N publishers publish messages for 1 subscriber
  • only the subscriber can read the message

I have this need because I want to implement a file-sharing social network. I need to send some messages between users identified by a keypair. This keypair is not the node keypair, so I can't directly use ipfs p2p (https://github.com/ipfs/go-ipfs/issues/3397#issuecomment-309306293). Pubsub is convenient because the recipient can simply listen to a topic named with its public key. I don't need to track which node an identity is on. There is no problem if an identity is copied on another node and run at the same time.

Has this been considered ? Surely I can implement this on top of the regular pubsub but maybe I'm not the only one with a usecase for this ? It could be implemented directly in the pubsub, be made more efficient and easier to use for someone implementing an app.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the proposed N-to-1 messaging model in this issue, along with the linked signing notes and go-ipfs discussion. No files, tests, or entry points are identified; the work would need a concrete design and agreed scope before implementation, with a clear definition of the reverse PubSub behavior as the outcome.

Written by the indexing model from the issue text.

Assessment

Domain
distributed-systems, networking
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.