Bird
0
0

Which architectural approach best supports a balance calculation system that processes millions of transactions with low latency and high accuracy?

hard📝 Trade-off Q8 of 15
LLD - Design — Splitwise (Expense Sharing)
Which architectural approach best supports a balance calculation system that processes millions of transactions with low latency and high accuracy?
ASingle monolithic application with batch processing at end of day
BUse event-driven microservices with distributed ledger and eventual consistency
CStore transactions in flat files and process sequentially
DUse a centralized database with synchronous locking for each transaction
Step-by-Step Solution
Solution:
  1. Step 1: Understand requirements

    System must handle millions of transactions with low latency and maintain accuracy.
  2. Step 2: Evaluate options

    Use event-driven microservices with distributed ledger and eventual consistency uses event-driven microservices and distributed ledger for scalability and fault tolerance.
  3. Step 3: Why others fail

    Single monolithic application with batch processing at end of day is slow due to batch processing. Store transactions in flat files and process sequentially is inefficient for large scale. Use a centralized database with synchronous locking for each transaction causes bottlenecks due to locking.
  4. Final Answer:

    Use event-driven microservices with distributed ledger and eventual consistency -> Option B
  5. Quick Check:

    Microservices + distributed ledger = scalable & accurate [OK]
Quick Trick: Event-driven microservices scale better than monoliths [OK]
Common Mistakes:
  • Choosing batch processing for real-time needs
  • Relying on centralized locking causing bottlenecks
  • Ignoring distributed system design principles

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes