LLDCoding - Master LLD and Concurrency

WhatsAppYouTube
Buy Course

LLDCoding - Master LLD and Concurrency

Design (LLD) a cryptocurrency exchange platform - Machine Coding

Design (LLD) a cryptocurrency exchange platform - Machine Coding

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

7 min read

Table of contents

  • Issues in above design
  • πŸ”₯ Problem 1: Wallet Uses double for Money (🚨 Critical)
    • ❌ What we Did
    • ❌ Why This Is a Fatal Mistake
    • Solution
  • πŸ”₯ Problem 2: Wallet Mutates State Directly (No Ledger)
    • ❌ What we Did
    • ❌ Why This Is Dangerous
    • Solution
  • πŸ”₯ Problem 3: Orders Exist Without an Order Book
    • ❌ What we Did
    • ❌ What’s Missing
    • Solution
  • πŸ”₯ Problem 4: No Order Lifecycle
    • ❌ What we Did
    • ❌ Real Orders Have States
    • Solution
  • πŸ”₯ Problem 5: Balance Updates Are Observer-Based (Wrong)
    • ❌ What we Did
    • ❌ Why This Is Unsafe
    • Solution
  • πŸ”₯ Problem 6: Deposit & Withdrawal Are Local Operations
    • ❌ What we Did
    • ❌ Real Crypto Reality
    • Solution
  • πŸ”₯ Problem 7: No Reservation of Funds During Order Placement
    • ❌ What we Missed
    • Solution
  • πŸ”₯ Problem 8: Security Is Just Mentioned, Not Designed
    • ❌ What we Claimed
    • ❌ What Exists
    • Solution
  • πŸ”₯ Problem 9: MVC Is a Red Herring
    • ❌ Why MVC Is Misused Here
    • Solution
PythonBeginner DevelopersJavaScriptProgramming BlogsNode.js

Β©2026 LLDCoding - Master LLD and Concurrency

Publish with Hashnode

Powered by Hashnode - Home for tech writers and readers