BitTorrent HLD: Downloading From Strangers, With No Server
A BitTorrent system design: splitting a file into hashed pieces, the peer swarm and tracker, rarest-first piece selection, tit-for-tat incentives, and why P2P scales up as demand grows.
"Design BitTorrent." Every other system on this site has a server somewhere — a database, a cache, an origin. BitTorrent's whole premise is that there isn't one. A million people download the same file with no central machine paying for the bandwidth, because each downloader becomes an uploader: the crowd serves itself. That inverts the usual scaling fear — here, the more people who want the file, the more capacity there is to serve it. Two problems fall out of "no server, download from strangers," and they're the design. How do you trust bytes from an anonymous peer (they could be corrupt or …
What’s inside
Read this one free
Sign in and your first premium article is on us — read BitTorrent HLD: Downloading From Strangers, With No Server free.