Question bank

No. 53 · Distributed infrastructure

Design a BitTorrent-style peer-to-peer file transfer system

Advanced45 minPeer-to-peer · Estimation · Security · Back-pressure · Sharding & partitioning · Failure detection

Your sketch
Opening the sketchbook…

OFF-SITE READING · OTHER PEOPLE’S WORK, OUR NOTES

Further reading

Partial reading

Vetted reading covers part of the design or the underlying paper, not the whole problem. Links go to other sites; we credit and describe them rather than copy them.

No public interview walkthrough designs a BitTorrent-style system end to end (for example, distributing one large file to thousands of servers); the protocol sources cover mechanics and our worked approach covers the design.

  1. BEP 3: The BitTorrent Protocol Specification

    BitTorrent.org · Bram CohenDocsBackgroundFreeVetted

    The protocol itself: metainfo files with piece hashes, tracker announces, and peer messages for have, bitfield, request and choke. Short and precise; no discussion of design alternatives.

    Link checked 2026-12-06

  2. Incentives Build Robustness in BitTorrent

    BitTorrent.org · Bram CohenPaperPaperFreeVetted

    Bram Cohen explains the design reasons: rarest-first piece selection, tit-for-tat choking with optimistic unchoke, and endgame mode. Best source for why the protocol scales with demand.

    Link checked 2026-12-06

  3. BEP 5: DHT Protocol

    BitTorrent.orgDocsBackgroundFreeVetted

    How peers are found without a tracker using a Kademlia-style DHT. Read this when the interviewer removes the central tracker; it is a protocol spec, not a tutorial.

    Link checked 2026-12-06

  4. Peer-to-peer networking with BitTorrent

    NTNU Department of Telematics (hosted by UCLA CS217) · Jahn Arne Johnsen, Lars Erik Karlsen, Sebjørn Sæther BirkelandPaperBackgroundFreeVetted

    A 2005 student report that surveys P2P topologies and walks through BitTorrent algorithms in plain language. Approachable background; dated on extensions and not peer reviewed.

    Link checked 2026-12-06

  5. BitTorrent: The Engineering behind the BitTorrent protocol

    Medium · Abhinav C VArticleBackgroundFreeVetted

    Friendly blog tour of pieces, the .torrent file, choking, piece selection and DHT with pseudocode. Fine as a first read, but simplifies seeder and leecher behaviour.

    Link checked 2026-12-06 (the site blocks automated checks; confirmed manually)

Report a bad or misleading link

Reference audit: 2 of 3 links from the audited catalog kept
  • youtube.com/watch?v=6PWUCFmOQwQ Public, but a few-minute consumer explainer with no design depth; superseded by BEP 3 and the incentives paper.

We audited the public catalog at systemdesign.io on 2026-12-06. Dropped links are not linked here on purpose.

COMPANY EVIDENCE · NOT A FREQUENCY CLAIM

Where it has been reported

Catalog tags (unverified)

GoogleAtlassianTwitch

Assigned by the reference catalog (audited 2026-12-06). We have not verified that these companies ask this question.

Report or add attribution evidence · How we label evidence

KEEP GOING

Related questions