News for hackers. Stuff that matters.
Re:Slack is down by littlestymaar on Tuesday January 09, 2018 @04:21PM (#16110227)
> Biggest issue is connectivity issues. Corporate firewalls don't allow incoming connections, and limit outgoing connections to specific ports (in most cases).

The STUN protocol solve most of this issue[2], webRTC is working fine in the majority of enterprise network.

> Maintaining history is also tricky in a P2P system.

It's perfectly possible to build a distributed database, actually that's exactly what blockchains are (OK, I know , we said no blockchain but I merely use it as an example ;)).

> My company moved from self-hosted IRC a few years ago. No one had time to maintain the system (backups, updates, troubleshooting, etc), and it was cheaper and easier to pay slack than to hire someone to maintain an IRC server, or to pull someone from their actual job to maintain it.

This isn't p2p, p2p shouldn't be confused with self hosted. Nobody has time to set up and maintain a server of any kind, but everybody was seeding torrents in the late 2000 and nobody complained about it being too much work.

[2] while the TURN protocol gives you the “hybrid system” for free (development-wise, you still need a hosting plan in that case, but it can be mutualized between all your applicative needs).

Re:Slack is down by maltalex on Tuesday January 09, 2018 @05:16PM (#16110668)
I'm all for P2P solutions and a more distributed Internet, but I'd like to add a few items to that list.

- Security in a P2P system is harder to get right. The system is distributed and each member has to trust more parties. This significantly increases the attack surface compared with a client that just needs to trust a single server.

- Not everyone is connected all the time, so network partitions happen constantly. It's hard to maintain a consistent state such as a chat log, not to mention anything more real-timey like the state of some real-time game.

- STUN and other NAT traversal techniques don't always work. NAT is horrible, creating connectivity between NATed clients is always a dice roll.

- Bandwidth - A dedicated server can have a lot of upstream bandwidth (to the clients). In homes, it typical to find (in some countries at least) connections that are heavily biased towards the downstream. So a 100Mbps connection (downstream) might have a 2Mbps connection upstream. Now say you want to have an 8 people video conference call, and all of your users have a 2Mbit uplink and need to send 7 copies of their video stream... What if it's a 20 person video call? What if half of them are on mobile?

- Bootstrapping - every P2P system still needs to have dedicated servers for bootstrapping. There are no pure P2P systems AFAIK.

- Client versioning and patching - a lot harder in a P2P system. With a central server - you just update the server and everything works. With a network of clients, things are trickier and you run the risk of partitioning the P2P network between different client versions.

- Monetization in P2P is hard(er).

Re:Slack is down by littlestymaar on Wednesday January 10, 2018 @02:04AM (#16113051)
You're right in all points (almost[1]), but those are mostly technical issues that can be solved with some work[2], except for two points :

- the bandwidth problem is real, but there is no more technological limitation[3], it's merely a commercial problem: client have no use for huge uplinks, then providers don't sell them. It's a bit of a chicken & egg problem.

- the monetization problem is the root of all sins in that case …

[1] on the client versioning & patching side, you underestimate the complexity of distributing a web client, with CDN, browser caches and clients who never reload their page, you can also end up with a lot of client lagging behind in updates.

[2] and centralized system also have their own issues (scaling anyone ?)

[3] ADSL was asymmetric because the asymmetry widened the reception bandwidth, which would otherwise be too low. With optical fibers, you don't have such limitations.