-
Notifications
You must be signed in to change notification settings - Fork 48
Updating Bitswap architecture diagram #161
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
Conversation
feffa54
to
b9e2072
Compare
b9e2072
to
39fb720
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How can users make changes? will ditaa pick up on the .txt version?
@diasdavid Yes -- I just ran |
39fb720
to
7501a28
Compare
@diasdavid Hey! Updated the diagram based on your comment on Slack (about the Bitswap message version transformations). |
Gotcha, can you define 'network' for me then? My understanding was roughly: https://github.com/dgrisham/specs/blob/a8fb19f9e15e39d6a716cb65f96b47afe209a3e6/bitswap/README.md#network, which doesn't seem accurate now based on your comment. |
I see where the confusion came from. That Network box is this internal class "https://github.com/ipfs/js-ipfs-bitswap/blob/master/src/network.js". All the things that were in the diagram were internal pieces to Bitswap :) |
Ah, gotcha, that also explains my confusion with the original diagram as well. I'll update the diagram to reflect this, thanks! |
thanks @dgrisham . Did you had time to look into this again? |
a8c2d7e
to
7f4da89
Compare
@diasdavid Hey, sorry about that, just pushed with that fix. Let me know what you think. |
7f4da89
to
f7e73a6
Compare
License: MIT Signed-off-by: David Grisham <[email protected]>
f7e73a6
to
7bd04e4
Compare
@diasdavid No worries, we want to be as accurate as we can here :) I suppose the main reason those parts of the diagram differ is that mine has the 'Peer using older Bitswap?' choice. My thought was that it made it more clear when looking at the incoming/outgoing messages, because on the original it seemed that the lines coming out of the The other reason I did this was that it seemed to be a bit more future-proof, because if we Bitswap gets updated to Does that make sense/what are your thoughts on this approach? Happy to change it back if you're unconvinced, but thought I'd share my reasoning. Edit: Also, I just pushed an update because my previous push was missing a few things. |
Oo, just realized one significant difference between our diagrams though. I'll push a change in a minute. Edit: Actually, scratch that. The line going from the |
What's the current state? As I start looking into Bitswap it would be great to look at an updated diagram :) |
@dgrisham given the lack of response, I'm closing this PR and keeping the mododraw version of the diagram which I believe does a better representation of the architecture. |
Hey @diasdavid that was my bad, I was thinking that your approval/review was the next step in this conversation, which is why I didn't respond to @vmx -- I should've pinged you since I thought that was the case. Let me know if you still want to move forward with this, the most recent version is here. Also fine to keep the older version if you still think that's better, but wanted to make sure this didn't get overlooked. |
Updating the architecture diagram as a part of the Bitswap spec update. Rendered to
.png
usingditaa
.