ENGINEERING ★ 145 upvotes 2019

How we built a P2P file sharing network from scratch

Retrospective Overview & Key Insights

Distilled analysis of the business dynamics, operational challenges, and strategic takeaways:

In this technical retrospective (2019), @grailed shares practical architectural lessons learned from running, scaling, or migrating production software under lean constraints.

Core Principles for Independent Builders:
1
Defaulting to simpler architectures (such as monolithic frameworks, SQLite, or managed VPS) prevents early engineering bankruptcy.
2
Evaluating true compute and egress costs reveals that high cloud bills can often be slashed by 80%+ through judicious re-platforming.
3
Code you write at 2 AM as a solo engineer must be easy to debug six months later without complex microservice dependencies.
Community Debate Themes:

HN engineers debated the tradeoffs between cloud convenience and raw server economics, database indexing strategies, and resisting premature architectural complexity.

Founder's Discussion Replies (@grailed)

Direct clarifications and follow-up comments shared by the author during the live discussion:

OP @grailed Original Author
2019

This article outlines how three engineers built a p2p file sharing network from scratch, and what they learned along the way.

It's a great high level primer if you're curious about how distributed hash tables or sharding works.

Community Discussions & Critical Reviews

High-signal perspectives, counter-arguments, and peer founder insights debated on Hacker News (19 total discussions):

VE @vector_spaces Peer Contributor

I'm working through the first set of Cryptopals so I appreciate the discussion of XOR distance here. Wondered if xorro referred to the XOR operation, now I know. Thanks for sharing

CH @chrisjarvis Peer Contributor

this is so interesting thanks for writing about it. I also want to do something in this space and this is a great resource.

MA @mav3rick Peer Contributor

Absolutely amazing article. Where can I get work like this where I get to design distributed systems from scratch ?

MU @MuffinFlavored Peer Contributor

Is it P2P but not decentralized because clients get metadata from supernode1.xorro-p2p.com?

CD @cdbattags Peer Contributor

someone should add "2017" somewhere to this

HISTORICAL ERA Cloud & Mobile Era (2014–2019)
COMMUNITY SCORE ★ 145 points
TOTAL DISCUSSIONS 19 comments
TOPICS & TECH STACK: