Low Level Design (LLD) Coding

WhatsAppYouTube
Buy Course

Low Level Design (LLD) Coding

Design (LLD)  Google Authenticator  - Machine Coding

Design (LLD) Google Authenticator - Machine Coding

Subhahu Jain's photo
Subhahu Jain
·Jan 5, 2024·

7 min read

Table of contents

  • Features Required:
  • Design Patterns Involved or Used:
  • Diagram
  • Code
  • Issues in Above Design
  • 1️⃣ Singleton God Object (LLD + Concurrency)
    • Issue
    • LLD Problem
    • Concurrency Problem
    • Impact
    • Solution
  • 2️⃣ Shared Mutable Command Invoker (Concurrency + Design)
    • Issue
    • LLD Problem
    • Concurrency Problem
    • Impact
    • Solution
  • 3️⃣ OTP Verification Is Not Atomic (Security + Concurrency)
    • Issue
    • LLD Problem
    • Concurrency Problem
    • Impact
    • Solution
  • 4️⃣ No Per-User Isolation (LLD + Concurrency)
    • Issue
    • LLD Problem
    • Concurrency Problem
    • Impact
    • Solution
  • 5️⃣ In-Memory DAO Not Thread-Safe (LLD + Concurrency)
    • Issue
    • LLD Problem
    • Concurrency Problem
    • Impact
    • Solution
  • 6️⃣ Token Factory and Crypto Reuse (Design + Thread Safety)
    • Issue
    • LLD Problem
    • Concurrency Problem
    • Impact
    • Solution
  • 7️⃣ Time Window Handling Is Naive (LLD + Concurrency)
    • Issue
    • LLD Problem
    • Concurrency Problem
    • Impact
    • Solution
  • 8️⃣ Observer Notifications Are Synchronous (LLD + Performance)
    • Issue
    • LLD Problem
    • Concurrency Problem
    • Impact
    • Solution
  • 9️⃣ No Rate Limiting or Throttling (LLD + Concurrency)
    • Issue
    • LLD Problem
    • Concurrency Problem
    • Impact
    • Solution
  • 🔟 No Idempotency Guarantees (LLD + Concurrency)
    • Issue
    • LLD Problem
    • Concurrency Problem
    • Impact
    • Solution
Programming BlogsJavaScriptJavaBeginner DevelopersAWSDeveloperGeneral ProgramminglearningNode.jsObject Oriented ProgrammingPythonReactsoftware developmenttechnologyUX

©2026 Low Level Design (LLD) Coding

Publish with Hashnode

Powered by Hashnode - Home for tech writers and readers