{"action":"created","issue":{"url":"https://api.github.com/repos/libp2p/go-floodsub/issues/23","repository_url":"https://api.github.com/repos/libp2p/go-floodsub","labels_url":"https://api.github.com/repos/libp2p/go-floodsub/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/libp2p/go-floodsub/issues/23/comments","events_url":"https://api.github.com/repos/libp2p/go-floodsub/issues/23/events","html_url":"https://github.com/libp2p/go-floodsub/issues/23","id":223580928,"number":23,"title":"Add 'answer' message type","user":{"login":"whyrusleeping","id":1243164,"avatar_url":"https://avatars3.githubusercontent.com/u/1243164?v=3","gravatar_id":"","url":"https://api.github.com/users/whyrusleeping","html_url":"https://github.com/whyrusleeping","followers_url":"https://api.github.com/users/whyrusleeping/followers","following_url":"https://api.github.com/users/whyrusleeping/following{/other_user}","gists_url":"https://api.github.com/users/whyrusleeping/gists{/gist_id}","starred_url":"https://api.github.com/users/whyrusleeping/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whyrusleeping/subscriptions","organizations_url":"https://api.github.com/users/whyrusleeping/orgs","repos_url":"https://api.github.com/users/whyrusleeping/repos","events_url":"https://api.github.com/users/whyrusleeping/events{/privacy}","received_events_url":"https://api.github.com/users/whyrusleeping/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-04-22T17:49:50Z","updated_at":"2017-07-09T02:13:42Z","closed_at":null,"body":"I think it would be really valuable to add an 'answer' type message. \r\n\r\nImagine a pubsub swarm where someone publishes a message asking for a certain value. That message gets propogated to the entire swarm as usual. Now if a peer wants to respond to that question, they essentially have to broadcast their answer to the entire swarm. Instead, i propose they send an 'answer' msesage, referencing the question message, back to whatever peer they received the question message from. The peer they responded to should check if they were the asker, and if not, continue sending the answer back until it reaches its target. Since we already keep a cache of recent messages to prevent cyclic propogation, this shouldnt require too much (if any) extra overhead.\r\n\r\nUsecases that this would be great for:\r\n- Orbit, new peers join, ask for the latest head, other peers answer.\r\n- IPNS queries through pubsub\r\n- Latency updates for self adjusting pubsub swarms (once we move away from flooding)"},"comment":{"url":"https://api.github.com/repos/libp2p/go-floodsub/issues/comments/313892926","html_url":"https://github.com/libp2p/go-floodsub/issues/23#issuecomment-313892926","issue_url":"https://api.github.com/repos/libp2p/go-floodsub/issues/23","id":313892926,"user":{"login":"dignifiedquire","id":790842,"avatar_url":"https://avatars3.githubusercontent.com/u/790842?v=3","gravatar_id":"","url":"https://api.github.com/users/dignifiedquire","html_url":"https://github.com/dignifiedquire","followers_url":"https://api.github.com/users/dignifiedquire/followers","following_url":"https://api.github.com/users/dignifiedquire/following{/other_user}","gists_url":"https://api.github.com/users/dignifiedquire/gists{/gist_id}","starred_url":"https://api.github.com/users/dignifiedquire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dignifiedquire/subscriptions","organizations_url":"https://api.github.com/users/dignifiedquire/orgs","repos_url":"https://api.github.com/users/dignifiedquire/repos","events_url":"https://api.github.com/users/dignifiedquire/events{/privacy}","received_events_url":"https://api.github.com/users/dignifiedquire/received_events","type":"User","site_admin":false},"created_at":"2017-07-09T02:13:42Z","updated_at":"2017-07-09T02:13:42Z","body":"@stebalien similar to this https://github.com/libp2p/js-libp2p-floodsub/pull/32 or a different approach?"}}
{"actor":{"display_login":"dignifiedquire"}}