2. Founding CTO at Greta
dennis@greta.io
https://greta.io
Dennis Mårtensson
3. Stockholm based startup thatwas
started in 2015.
Greta has developed a distribution
scriptthatturnsyourvisitors into
points ofpresence usingWebRTC.
4. • Short on WebRTC
• Basics of decentralised data distribution
• Different technical options
• Security
• What’s the point in doing this?
• Demo
Topics oftoday
5. • Standard (roots in this building! :))
• Most common use: video chat/conference systems
• Used in big products like Google Hangout
• Supported in Chrome, Firefox, Opera, Edge, native for iOS, Android
• Apple’s plans still unknown (http://www.webrtcinwebkit.org/)
WhatisWebRTC?
6. pc = new RTCPeerConnection(servers);
navigator.getUserMedia({audio:true},
gotStream);
pc.createDataChannel("sendDataChannel",
{reliable: false, ordered: true});
WhatisWebRTC?
7. • Serving data peer-to-peer between users.
• Using the WebRTC Data channel.
• Possible for video, audio, images and of course arbitrary data.
• The effect is server offload.
• Possibility of faster load times.
• Scales with the number of users on your service or site.
Distributing datawithWebRTC
20. • Using a third party to verify
• Subresource Integrity
• Peers get random IDs (non PII)
• Flow control in signaling
• Gossip protocol for blacklisting
Whataboutsecurity?
21. • You will get POPs like a normal CDN, but the POP’s will be completely
dynamic and they will be exactly where your users are.
• You will move load from your servers or CDN to the peer-to-peer network.
That will allow you to use less bandwidth and less server capacity.
• You will get very interesting cases where you have users with very low
latency high throughput connections. That results in very fast load times and
high quality.
• It will also scale more organically, as your distribution capacity increases
with the number of concurrent users.
So,whatis the effectofdoing all this?