| Users | Requirements Complexity | Use Case Diversity | System Impact |
|---|---|---|---|
| 100 users | Basic functional requirements, simple workflows | Few use cases, mostly core features | Minimal load, easy to manage |
| 10,000 users | More detailed requirements, edge cases appear | Multiple use cases, some variations in user behavior | Moderate load, need for performance optimization |
| 1,000,000 users | Complex requirements, scalability and reliability critical | Wide range of use cases, including rare and concurrent scenarios | High load, requires distributed systems and fault tolerance |
| 100,000,000 users | Extensive requirements, global compliance, multi-tenancy | Very diverse use cases, internationalization, personalization | Massive load, advanced scaling, monitoring, and automation |
Requirements and use cases in LLD - Scalability & System Analysis
Start learning this pattern below
Jump into concepts and practice - no test required
At small scale, unclear or incomplete requirements cause delays and rework.
As users grow, the first technical bottleneck is often the system's inability to handle diverse use cases efficiently.
Without clear use cases, the system design may not support necessary workflows, causing performance and reliability issues.
- Clarify and prioritize requirements: Regularly update requirements to reflect user needs and system goals.
- Use modular design: Break system into components to handle different use cases independently.
- Implement flexible workflows: Support variations in use cases without major redesign.
- Automate testing: Ensure all use cases are covered and system behaves as expected.
- Plan for scalability: Design with growth in mind, including load balancing and caching.
At 100 users, requirements gathering and use case definition cost dominate.
At 10,000 users, development and testing costs increase due to more use cases.
At 1,000,000 users, infrastructure costs rise sharply to support complex workflows and high availability.
At 100,000,000 users, operational costs for monitoring, compliance, and continuous improvement become significant.
Start by clearly defining requirements and use cases.
Explain how these influence system design and scalability.
Discuss how evolving requirements impact bottlenecks and solutions.
Use examples to show understanding of real-world complexity.
Your system requirements are simple and support 1000 QPS. Traffic grows 10x. What do you do first?
Answer: Review and update requirements and use cases to ensure the system can handle increased load and complexity. Then plan scaling strategies accordingly.
Practice
requirements in system design?Solution
Step 1: Understand the definition of requirements
Requirements define the functions and features the system must provide.Step 2: Differentiate from use cases
Use cases describe user interactions, not the system's core functions.Final Answer:
To specify what the system must do -> Option DQuick Check:
Requirements = system functions [OK]
- Confusing requirements with use cases
- Thinking requirements include UI design
- Assuming requirements are code instructions
use case in system design?Solution
Step 1: Define use case
A use case is a story or scenario describing how a user uses the system.Step 2: Eliminate unrelated options
System features list, architecture diagrams, and code modules are not use cases.Final Answer:
A scenario showing user interaction with the system -> Option AQuick Check:
Use case = user scenario [OK]
- Mixing use cases with system features
- Confusing use cases with technical diagrams
- Thinking use cases are code components
Solution
Step 1: Identify user actions in options
User uploads a photo and receives confirmation message describes a user action and system response, fitting a use case.Step 2: Recognize system internals vs user interaction
Options A, C, and D describe internal system details, not user interactions.Final Answer:
User uploads a photo and receives confirmation message -> Option BQuick Check:
User action + system response = use case [OK]
- Choosing system internal processes as use cases
- Ignoring the user perspective
- Confusing data storage details with use cases
Solution
Step 1: Analyze the use case description
The statement is a high-level feature but lacks detailed user steps.Step 2: Understand use case completeness
Use cases should describe user actions step-by-step, not just state features.Final Answer:
It incorrectly describes a system requirement instead of a use case -> Option CQuick Check:
Use case needs detailed user steps [OK]
- Confusing requirements with use cases
- Expecting technical details in use cases
- Ignoring the need for step-by-step user actions
Solution
Step 1: Identify relevant requirement for ride request
Matching riders with drivers quickly is a key system requirement for this feature.Step 2: Identify matching use case
The use case describes the rider's interaction to request a ride step-by-step.Step 3: Verify other options
Other options mix unrelated requirements or use cases not tied to "Request a ride" feature.Final Answer:
Requirement: The system must match riders with drivers within 2 minutes. Use case: Rider opens app, enters destination, and confirms ride request. -> Option AQuick Check:
Requirement + user steps = correct combination [OK]
- Mixing unrelated requirements and use cases
- Ignoring user interaction details
- Choosing cosmetic or admin features instead of core ones
