Coder Social home page Coder Social logo

Questions about scalability about p2pt HOT 7 OPEN

subins2000 avatar subins2000 commented on August 11, 2024
Questions about scalability

from p2pt.

Comments (7)

therealadityashankar avatar therealadityashankar commented on August 11, 2024

yes, yes it would, peerconnections have limits, see #17

from p2pt.

draeder avatar draeder commented on August 11, 2024

Yes, I already linked to #17 in my question. I have additional questions if the answer is yes.

from p2pt.

therealadityashankar avatar therealadityashankar commented on August 11, 2024

In #17 I mentioned that peer connections have a limit of 256 connections, browsers simply don't allow more connections than that. I'm not sure if browsers would "crash" per say.

I think bugout is doing the exact same thing that this project is doing, although this project allows for "specific" urls, bugout automatically sets them for you.

Yes, P2PT can be used to provide a worldwide "gossip" protocol similar to bugout, although I've some privacy concerns I've mentioned in #9 , I've not been able to fix the code because I haven't found the time, and yes you're right P2PT can be used to do insane things from building a decentralized blockchain to a lot of different stuff

from p2pt.

draeder avatar draeder commented on August 11, 2024

@therealadityashankar I've been playing with bugout for over a year.. I had to build out URL construction myself. What I thought was great about P2PT is I didn't have to do anything at all. I ran the codepen in two browser tabs, then on my phone using the mobile network and all three were connected together without doing anything special. Bugout was built to simulate server <-> client using P2P, whereas it seems P2PT was built for true fully meshed P2P.

As for the privacy concerns, bugout is using NACL to encrypt communication between peers, if I understand it correctly. I wish I could help with that issue on P2PT, but my javascript fu just isn't at that level yet.

from p2pt.

subins2000 avatar subins2000 commented on August 11, 2024

P2PT's original intent is to easily make WebRTC apps making use of WebTorrent trackers which is publicly available for use. P2PT makes WebTorrent trackers not only for torrenting, but for general purpose WebRTC apps.

Anything that's an extension of it is better to be a separate project. That'd be the best choice.

P2PT is a fully meshed browser to browser P2P solution. Is that correct to say it is "fully meshed?"

Yes

If so, what would occur if 50,000 people suddenly ran your codepen examples? Would everyone's browsers crash?

Idk for sure if browsers would crash, but there's a maximum number of peer connection limit in browsers.

As for the privacy concerns, bugout is using NACL to encrypt communication between peers

Even so it also uses public WebTorrent trackers to establist P2P I believe. So, the trust in WebTorrent tracker is equal in both. NACL can be used on top of P2PT to have a more secure messaging, yes.

from p2pt.

draeder avatar draeder commented on August 11, 2024

@subins2000 - Thank you for the answers. What I would like to build using P2PT is a global "protocol" of sorts for social networking. Based on what you're saying, I would need to figure out how to extend the mesh beyond the browser limits if the network of connected were to grow beyond those limits. I've seen some ideas for that with WebRTC many-to-many live video that I could explore.

Privacy isn't really a concern to me yet, but securing messages from man in the middle attacks is a concern. I would want to make sure if Alice sends a message to Bob, that message is not altered. Signing the message with a public key is probably a way to do it.

Again, I appreciate the info.

from p2pt.

therealadityashankar avatar therealadityashankar commented on August 11, 2024

do note that p2pt is crazy heavy as-is, I'd recommend using browser's native subtlecrypto over https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto over NACL

Also, do note public-key authentication does not prevent MITM attacks, in the end of #9 I proposed a solution for this

from p2pt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.