Low Level Design (LLD) Coding

WhatsAppYouTube
Buy Course

Low Level Design (LLD) Coding

Design (LLD) Twitter  - Machine Coding

Design (LLD) Twitter - Machine Coding

Subhahu Jain's photo
Subhahu Jain
·Dec 31, 2022·

7 min read

Table of contents

  • Code
  • Issues in above design
  • 🔥 Problem 1: Everything Is in HashMaps (Concurrency Nightmare)
    • ❌ What we Did
    • ❌ Why This Is Dangerous
    • Solution
  • 🔥 Problem 2: Tweet Creation Is a Giant God Method
    • ❌ What we Did
    • ❌ Why This Is a Design Smell
    • Solution
  • 🔥 Problem 3: Timeline Generation Is Not Designed at All
    • ❌ What’s Missing
    • Solution
  • 🔥 Problem 4: Notification System Is Synchronous and Blocking
    • ❌ What we Did
    • ❌ Why This Is Dangerous
    • Solution
  • 🔥 Problem 5: RateLimiter Is Not Thread-Safe (and Incorrect)
    • ❌ What we Did
    • ❌ Why This Fails
    • Solution
  • 🔥 Problem 6: CacheService Is Incorrect by Design
    • ❌ What we Did
    • ❌ Why This Breaks Reality
    • Solution
  • 🔥 Problem 7: No Data Ownership or Aggregate Boundaries
    • ❌ Big Missing Concept
    • Solution
JavaScriptPythonJavaGeneral ProgrammingProgramming Blogs

©2026 Low Level Design (LLD) Coding

Publish with Hashnode

Powered by Hashnode - Home for tech writers and readers