News for hackers. Stuff that matters.
Re:Deploying a global, private CDN by xori on Wednesday August 30, 2017 @12:53PM (#15133739)
Probably.

https://sig.edgeno.de/edgemesh.client.min.js is being added to my uBlock list.

Re:Deploying a global, private CDN by chrissnell on Wednesday August 30, 2017 @01:49PM (#15134304)
Good call. I just submitted an issue to UBlock to get their JS client added to the block lists:

https://github.com/uBlockOrigin/uAssets/issues/659

Sorry Edgemesh team, but this kind of activity without user opt-in is not okay.

Re:Deploying a global, private CDN by jloveless on Wednesday August 30, 2017 @01:56PM (#15134375)
No worries - that's exactly what uBlock is there for! :) We've struggled to find the best way to add opt out on the client side without effecting the actual page itself (e.g. pop-up etc) and would love to get some thoughts on this - please PM me if you have any. Alternatively we went with a more aggressive approach on network based detection (e.g. metered connections, replication across ASN vs intra-ASN etc).
Re:Deploying a global, private CDN by hwillis on Wednesday August 30, 2017 @02:22PM (#15134623)
A little notification does seem like the best idea to me. Obviously it would need to be zero-effort, way unobtrusive, and nice and reassuring. "Hey- on unmetered connections, this page may balance network load with your unused bandwidth. You shouldn't notice any difference in speed! [Learn More][Edgemesh CDN]" Maybe even the slightly more aggressive "Your unused bandwidth is helping to speed up other people's connections!" Pop a neat little box in the lower right hand corner on the first visit, and have it minimize/disappear after a couple seconds.

I think it's a little skeevy to have it be completely silent. That doesn't mean it has to be super loud though.

Re:Deploying a global, private CDN by jloveless on Wednesday August 30, 2017 @09:45PM (#15137539)
We've added this to 1.7.2 [1] That will roll into production tomorrow evening.

Thanks for all the feedback HN community!

[1] https://github.com/edgemesh/edgemesh/releases

Re:Deploying a global, private CDN by hwillis on Wednesday August 30, 2017 @10:12PM (#15137658)
Man, you guys are awesome and endlessly tolerant of the slightly fanatical hyperbole being directed at you.
Re:Deploying a global, private CDN by aaronsmulktis on Thursday August 31, 2017 @07:40PM (#15144955)
Although i am not at all affiliated w Edgemesh as a company, I can tell you (first/second? hand) the personality and good-naturedness in this team is through the roof.

Plus its just a killer product made by killer devs, pretty sure Spotify does P2P cache-sharing too btw.

Re:Deploying a global, private CDN by drdaeman on Wednesday August 30, 2017 @02:22PM (#15134626)
I think it should be a browser-level feature, just like allowing notifications or location access.

Browsers should have an option to follow one of four behaviors: a) allow all P2P connections, b) always ask, c) allow a low-volume (say, <32kbps) P2P traffic, but throttle and ask if the rate tries to go beyond the safe threshold and d) deny all P2P connections. With b) or c) being a sane default, and a JS API to check permissions programmatically.

While this doesn't solve the problem right now (and would probably take a long while to happen), as a long-term solution, I think that would be the best way for everyone, providers and consumers.

I just think if you'll raise an issue with the mainstream vendors (Mozilla, Google, Opera, Vivaldi) you (as a company) this idea may have slightly better chances to be heard than just some random end-user suggestions.

If this idea fits your vision, of course.

---

As a short term, I guess maybe you can implement some proprietary API and suggest your users (webmasters) to show a confirmation panel that fits their site look-and-feel. With some readily-available sample implementation that they can just use if they don't want to spend time at all (besides adding a line of code).

Re:Deploying a global, private CDN by jloveless on Thursday August 31, 2017 @12:22AM (#15138146)
We've documented it here [1] and also put an example footer implementation on our homepage[2] as well. Thanks for the feedback!

[1] https://edgemesh.com/docs/getting-started/opt-out [2] https://edgemesh.com

Re:Deploying a global, private CDN by jloveless on Wednesday August 30, 2017 @02:31PM (#15134698)
I like the idea of a browser level feature for opt in to WebRTC (on a per Origin basis) - and it was proposed circa 2011 web WebRTC was coming of age. It's probably worth revisiting that discussion.

Also with regards to detecting metering client side you're 100% correct - you can't reliably do it in any way on the client side (although for mobile there are some APIs to detect cellular vs. wifi [1]). What we do it we have a mapping of ASNs that are flagged as metered. When your client comes online we take the IP, map to the ASN and determine if it is able to upload. We buy this data today and you can always drop an email to [email protected] with your IP and we will add it in.

[1] https://developer.mozilla.org/en-US/docs/Web/API/Navigator/c...

Re:Deploying a global, private CDN by gcb0 on Wednesday August 30, 2017 @02:21PM (#15134618)
how can you even know if a connection is metered from within a browser?!

thats crazy talk rigth there. there are so many variations that all happen completely outside of the browser domain and/or the connection destination.

Re:Deploying a global, private CDN by jloveless on Wednesday August 30, 2017 @02:48PM (#15134818)
Aside from the connection API - What we do it we have a mapping of ASNs that are flagged as metered. When your client comes online we take the IP, map to the ASN and determine if it is able to upload (e.g. on cellular/metered etc). We buy this data today and you can always drop an email to [email protected] with your IP and we will add it in. We also prioritize upload partners for known ASNs (e.g. you're more likely to be chosen for upload if you are on Verizon Business than Verizon Fios than Telstra).
Re:Deploying a global, private CDN by gcb0 on Thursday August 31, 2017 @11:29AM (#15140979)
that's noble. really. but by far deterministic.
Re:Deploying a global, private CDN by technopriest on Wednesday August 30, 2017 @02:46PM (#15134802)
via the Network Information API.

https://developer.mozilla.org/en-US/docs/Web/API/Network_Inf...

Connections start metered and are then upgraded when an unmetered connection is successfully detected.

Re:Deploying a global, private CDN by technopriest on Wednesday August 30, 2017 @02:50PM (#15134845)
Yes, I've seen the phrase "seeding to random peers" pop up a few times. Peer selection is actually extremely smart and is by no means "random".
Re:Deploying a global, private CDN by chrissnell on Wednesday August 30, 2017 @07:48PM (#15137068)
It's in the official uBlock filters list now. https://github.com/uBlockOrigin/uAssets/commit/7a32aa2efb033...