LLDCoding - Master LLD and Concurrency

WhatsAppYouTube
Buy Course

LLDCoding - Master LLD and Concurrency

Design a news feed - Machine Coding

Subhahu Jain's photo
Subhahu Jain
Β·Jan 13, 2023Β·

8 min read

Table of contents

  • Code
  • Issues in Above Design
  • πŸ”₯ Problem 1: Observer Pattern = Notification Disaster
    • ❌ What we Did
    • ❌ Why This Is a Critical Design Flaw
    • Solution
  • πŸ”₯ Problem 2: NewsFeed Is a God Object
    • ❌ What we Did
    • ❌ Why This Is Dangerous
    • Solution
  • πŸ”₯ Problem 3: Feed Retrieval Is O(N) and Unscalable
    • ❌ What we Did
    • ❌ Why This Will Never Work
    • Solution
  • πŸ”₯ Problem 4: No Personalization Model at All
    • ❌ What’s Missing
    • Solution
  • πŸ”₯ Problem 5: Concurrency Is Completely Ignored
    • ❌ What we Did
    • ❌ Why This Is Fatal
    • Solution
  • πŸ”₯ Problem 6: Topics Are the Wrong Abstraction for Feeds
    • ❌ What we Modeled
    • ❌ Why This Is Naive
    • Solution
  • πŸ”₯ Problem 7: Decorator Pattern Misused for Core Data
    • ❌ What we Did
    • ❌ Why This Is Wrong
    • Solution
  • πŸ”₯ Problem 8: Time-Based Queries Are Naive
    • ❌ What we Did
    • ❌ Why This Fails
    • Solution
JavaScriptPythonGeneral ProgrammingProgramming BlogsJava

Β©2026 LLDCoding - Master LLD and Concurrency

Publish with Hashnode

Powered by Hashnode - Home for tech writers and readers