Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

track: floodsub #580

Closed
1 of 3 tasks
daviddias opened this issue Nov 10, 2016 · 12 comments
Closed
1 of 3 tasks

track: floodsub #580

daviddias opened this issue Nov 10, 2016 · 12 comments
Assignees

Comments

@daviddias
Copy link
Member

daviddias commented Nov 10, 2016

I've created this issue to track the development of the floodsub API inside the JS libraries, getting the people interested to rail in quickly and also to give a venue to sync for the ones working on the endeavour.

Important links

Milestones

  • Design and agree on a FloodSub Interface
  • Get first implementation in
  • Apply pubsub testnet to get real data from the implementation.
@daviddias
Copy link
Member Author

daviddias commented Nov 10, 2016

Lead

@gavinmcdermott is leading the charge of getting js-libp2p-floodsub integrated into js-ipfs and with that come up with an API that works for a scenario where floodsub is 'in process'(js-ipfs) or 'remote' (js-ipfs-api/through http).

@daviddias
Copy link
Member Author

Testing floodsub interop

Currently, we have interop between go and js. One way to level that up is to grab the floodsub-testnet work and attach it to js-ipfs nodes instead, since js-ipfs and js-ipfs-api share the same API, we can make the testnet code spawn both types of nodes and see how the network behaves :)

@daviddias
Copy link
Member Author

API design considerations

@haadcode
Copy link
Member

@diasdavid can we keep the API discussion in the original issue so that we don't have a gazillion places to look for?

The original discussion is here: #530.

API should enable the user cancel a subscription

This was added to the spec today, ipfs.pubsub.unsubscribe("topic")

floodsub API should enable the developers to not be target of spam attacks - support for TopicDescriptios

There's comments regarding this in the issue above. Let's continue there.

@daviddias daviddias added this to the q4d - interface-floodsub milestone Nov 12, 2016
@haadcode
Copy link
Member

To make sure information gets passed around: I'm working on refactoring the current js-ipfs-api PR and that work is here: https://github.com/haadcode/js-ipfs-api/blob/fix/pubsub/src/api/pubsub.js and tests are here https://github.com/haadcode/js-ipfs-api/blob/fix/pubsub/test/ipfs-api/pubsub.spec.js.

@haadcode
Copy link
Member

haadcode commented Nov 18, 2016

There's also work that needs to happen on go-ipfs side in order to land js-ipfs-api, mainly this: ipfs/kubo#3304 (API call to pubsub/sub does not return HTTP header until first message arrives)

@haadcode
Copy link
Member

There's a new PR for js-ipfs from @gavinmcdermott here #610 (posting here to keep track of all the work that's happening)

@daviddias
Copy link
Member Author

@haadcode @gavinmcdermott, I've updated https://github.com/libp2p/js-libp2p to the latests libp2p versions, so that you don't have to go through it yourselves. All you should have to do is update the version :)

@daviddias daviddias added status/ready Ready to be worked and removed js-ipfs-ready labels Dec 5, 2016
@haadcode haadcode added status/in-progress In progress and removed status/ready Ready to be worked labels Dec 5, 2016
@haadcode
Copy link
Member

haadcode commented Dec 5, 2016

Tests for the pubsub interface are now in a PR in interface-ipfs-core: ipfs-inactive/interface-js-ipfs-core#101

@haadcode
Copy link
Member

haadcode commented Dec 5, 2016

For js-ipfs-api, before merging pubsub, we need this to be merged: ipfs-inactive/npm-go-ipfs-dep#13 (comment) and have go-ipfs-dep 0.4.5-something released (I've been publishing @haad/go-ipfs-dep v0.4.5-beta.x).

@gavinmcdermott
Copy link

@haadcode and @diasdavid - Thanks for the updates here. I'm getting caught back up today and will be back in SF late tonight. That said, I'll be available to wrap up work on outstanding items this week!

@daviddias
Copy link
Member Author

daviddias commented Dec 6, 2016

LAST MILE

PR's are open, now it is all about that merge that release, no red tests 🎤

@daviddias daviddias removed the status/in-progress In progress label Dec 9, 2016
MicrowaveDev pushed a commit to galtproject/js-ipfs that referenced this issue May 22, 2020
Also asserts that `.add` output has metadata
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants