Lightweight library providing peer to peer CDN - beta version!
I have released beta version of my peer-cdn. What I would expect out of this version is feedback on the matter of browser support and the issues I haven’t thing of. This version is released in case of finding out what is need to be done before actual release.
The main idea of peer-cdn is to use WebRTC and Service Worker to allow assets such as scripts, images, videos, styles and other files to be shared between peers reducing server usage.
For full example please check this directory
Things to consider:
- peer matching algorithms (ways of improving - pick best direction to go from here, beta version keeps it simple - pick first)
- browser support WebRTC
- browser support
- media supported (there might be issues with range request)
For now I know there might be some issues with:
client.postMessage()problems on Google Chrome Version 64.0.3282.167 (Official Build) (64-bit) however works on Mozilla Firefox Quantum 58.0.2 (64-bit)
- range requests
- add more tests
- resolve browser support
- create web pack plugin
- improve signalling server