LLDCoding - Master LLD and Concurrency

WhatsAppYouTube
Buy Course

LLDCoding - Master LLD and Concurrency

Design (LLD) a peer-to-peer file sharing system like BitTorrent - Machine Coding

Design (LLD) a peer-to-peer file sharing system like BitTorrent - Machine Coding

Subhahu Jain's photo
Subhahu Jain
·Jul 15, 2023·

6 min read

Table of contents

  • Issues in above design
  • 🔥 Problem 1: Peer Is a God Object
    • ❌ What we Did
    • ❌ Why This Is a Serious Design Smell
    • Solution
  • 🔥 Problem 2: No Peer Discovery Model Exists
    • ❌ Claimed Feature
    • ❌ Actual Code
    • Solution
  • 🔥 Problem 3: Chunk Data Stored in Memory (Huge Red Flag)
    • ❌ What we Did
    • ❌ Why This Is Dangerous
    • Solution
  • 🔥 Problem 4: Rarest-First Strategy Is Not Implementable Here
    • ❌ What we Wrote
    • ❌ Why This Is Fundamentally Wrong
    • Solution
  • 🔥 Problem 5: No Integrity Verification Model
    • ❌ Claimed Feature
    • ❌ Missing Reality
    • Solution
  • 🔥 Problem 6: Concurrency Is Claimed but Not Designed
    • ❌ What we Claimed
    • ❌ What You Actually Did
    • Solution
  • 🔥 Problem 7: No Bandwidth Management Exists
    • ❌ Claimed Feature
    • ❌ Missing Entirely
    • Solution
  • 🔥 Problem 8: Observer Pattern Is Misleading Here
    • ❌ What we Claimed
    • ❌ Why This Is Dangerous
    • Solution
  • 🔥 Problem 9: No Separation Between Control Plane & Data Plane
    • ❌ What we Modeled
    • Solution
Programming BlogsJavaScriptJavaPythonBeginner Developers

©2026 LLDCoding - Master LLD and Concurrency

Publish with Hashnode

Powered by Hashnode - Home for tech writers and readers