this post was submitted on 08 Dec 2024
9 points (100.0% liked)
IPFS
734 readers
7 users here now
Community for the InterPlanetary File System.
Website: https://www.ipfs.tech Github: https://github.com/ipfs/ipfs/
IRC: #ipfs on libera.chat
Matrix Space: #ipfs-space:ipfs.io
Discord: https://discord.gg/DrPFqa2
Forums: https://discuss.ipfs.tech/
Other IPFS communities on Lemmy
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
This is something I'm struggling with a bit actually.
I created a custom peer to peer networking library for an old game from the 90s. It uses an ICE (webRTC) library with a signaling server to establish peer to peer connections. I looked into libp2p but I can't wrap my head around how a DHT would be better than my simple signaling / lobby server. Yes, you'd have lots of potential relay servers around, but I already use a TURN server provoder for my current solution that has global relays for pennies per month. And Kademlia/DHT doesn't remove the need for a primary server somewhere because every new client needs an initial peer to connect - so I have to provide a static peer anyway. Not sure how this is any different than a server.
Anyway - I really like libp2p and want to explore the option, but that's my experience with an alternative p2p option.
Libp2p supports a lot of different transports and does most of the work for you. For instance, libp2p can find devices on the local network via mDNS.
It is probably overkill but it is easier to use a libp2p than start from the ground up. The DHT is only one small piece and libp2p is very robust.