Distributed peer-to-peer caching
Want to see pretty graphs? Log in now!
npm install peercache
|1||downloads in the last week|
|4||downloads in the last month|
|Last Published By|
|Version||0.0.1 last updated a year ago|
|Keywords||peer, peer-to-peer, p2p, cache, load, balancing|
|Dependencies||express, ws, node-uuid, redis, hiredis|
Distributed peer-to-peer load balancing using the P2P WebRTC API.
- Automatic scaling – the more people visit a page, the more seeders a given file has, and the less the server has to work.
- Doesn't send raw binary image data.
- Doesn't respect Cache-Control headers, will quickly result in loosing control of files.
- No security, anyone could seed invalid data to other peers.
- Since you can't set the DataChannel to reliable, files are limited in size.
- Due to the Same Origin Policy, images has to be hosted on the same origin as the signaling server.
npm install peerbalanced; npm install -d
Since it just barely works at the moment, I recommend against using it for anything serious.
redis-server; node index.js; open http://localhost:8080/examples/example.html http://localhost:8080/examples/example.html
Information about the protocol used can be found in the wiki.