3 ms·
That's not going to work because having a server on 24/7 is going to kill battery life. Not to mention issues around NAT and hole punching.
by gruez 6y ago
That's not going to work because having a server on 24/7 is going to kill battery life. Not to mention issues around NAT and hole punching.
- jka 6y agoBattery usage would probably depend on how frequently requests have to be served? Discoverability and routing is certainly a question too. Something like ngrok could help there, with good network sandboxing on the user's local device. There'd no doubt be times when the site would become popular enough that a single smartphone wouldn't be suitable and load-balancing the requests could be required.
- gruez 6y ago> Something like ngrok could help there, with good network sandboxing on the user's local device. ngrok only works because there's a company willing to proxy someone's traffic for free. In that sense "using ngrok" doesn't solve the issue, it only pushes the problem to someone else.
- jka 6y agoIt's not an ideal long-term architecture, sure. It'd be better to have website search, discovery and routing possible without routing tricks. Sometimes you have to make do with what's available currently while preparing the future possibilities.
- xenonite 6y agoWhy makes you so sure about that? A suitable web server process uses zero CPU after it is started and opened the right port.
- Cthulhu_ 6y agoPhones will suspend and kill applications that aren't actively used; with iOS this has always been the case (you can't have ANYTHING running in the background on iOS unless it's navigation, calls, or music, that is you need to request special exemption from it). It might be possible on Android but even there the phone will slumber while in your pocket. Phones are not servers.
- jannes 6y agoPhones turn off their radio when the screen is off and go into a sleep state (waking up in intervals). Keeping the radio on 24/7 is just going to increase power usage by a lot. It's not the CPU that's the concern. Even ignoring this issue, it would open your phone up to getting DDoSed by strangers on the internet.
- belorn 6y agoHow long delay does this sleep state impact messenger applications? Are we talking seconds or milliseconds?
- square_usual 6y agoYou could have peer-to-peer hosting - you give up some space on your device to host, and if your device is offline another device has a copy of it that they serve. Of course, there would need to be some sort of regulation to ensure people weren't using it to distribute illegal material.
- gruez 6y agoYou'll almost certainly need some sort of cryptocurrency to adequately compensate your peers. Otherwise it's not fair for you to host someone else's 10GB movies for free while you're only publishing a 1MB static site. But if we get to that point why not just pay someone else to do it, since there will be a competitive marketplace for hosts?
- zrm 6y agoFairness is overrated. 8TB drives are currently around $150, which prices 10GB of storage under 19 cents. Bandwidth costs would dominate if one peer had to upload the same material thousands of times, but in a P2P system the average peer uploads each thing once, and then we're back to pennies. It's an amount of money smaller than its own collection cost. Do I really care if I'm paying for $0.75/year in local computing resources and only using $0.03/year myself? It's not even worth negotiating over and would generally have still existed and just been idle in the alternative. Moreover, even if everybody is a scrooge who can't just eat a negligible annual cost without worrying about it, you don't need everybody. You just need a few extra nodes to provide redundancy for you. Which could be your sister and your best friend and your father in law rather than some strangers you have to pay in a way that requires you to file weird tax paperwork.
- gruez 6y agoThe fundamental problem is that within a network, resource (storage, bandwidth) is scarce. There might be altruists that are willing to donate resource to the network, but there's a finite amount of them. Using a market to solves two problems: it deters abuse (eg. someone using the network as their personal backup service) and incentivizes non-altruistic people to contribute resources to the network.