| Users | Data Volume | Traffic | System Complexity | Requirements Focus |
|---|---|---|---|---|
| 100 users | Small (MBs) | Low (few requests/sec) | Simple | Basic functionality, correctness |
| 10,000 users | Medium (GBs) | Moderate (hundreds req/sec) | Moderate | Performance, reliability, usability |
| 1,000,000 users | Large (TBs) | High (thousands req/sec) | Complex | Scalability, fault tolerance, security |
| 100,000,000 users | Very Large (PBs) | Very High (millions req/sec) | Very Complex | Global distribution, data partitioning, disaster recovery |
Requirements analysis 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.
At medium scale, performance bottlenecks appear if requirements miss load expectations.
At large scale, missing scalability and fault tolerance requirements cause system failures.
At very large scale, lack of clear data partitioning and disaster recovery requirements leads to outages.
- Start with clear, detailed functional and non-functional requirements.
- Use iterative refinement: gather feedback and update requirements regularly.
- Include scalability, reliability, and security early in requirements.
- Plan for data growth and traffic spikes in requirements.
- Use modeling and prototyping to validate requirements before implementation.
- Engage stakeholders continuously to avoid misunderstandings.
Requests per second grow from a few at 100 users to millions at 100M users.
Data storage needs grow from megabytes to petabytes.
Network bandwidth and processing power requirements increase accordingly.
Early requirements must estimate expected load to avoid costly redesigns.
1. Clarify the system scope and user base size.
2. Identify key functional and non-functional requirements.
3. Discuss how requirements evolve with scale.
4. Highlight potential bottlenecks caused by missing or vague requirements.
5. Suggest iterative and stakeholder-driven approaches to refine requirements.
Your system requirements specify support for 1000 requests per second. Traffic grows 10x. What do you do first?
Answer: Revisit and update requirements to include higher load expectations, then plan system design changes accordingly.
Practice
Solution
Step 1: Understand the role of requirements analysis
Requirements analysis focuses on understanding and defining the system's needs and functions.Step 2: Differentiate from other phases
Writing code, testing, and deployment happen after requirements are clear.Final Answer:
To define what the system must do -> Option DQuick Check:
Requirements analysis = Define system needs [OK]
- Confusing requirements analysis with coding
- Thinking testing is part of requirements
- Mixing deployment with requirements gathering
Solution
Step 1: Identify key activities in requirements analysis
Gathering user needs is essential to understand what the system should do.Step 2: Exclude unrelated activities
Deployment scripts, compiling code, and testing happen after requirements are set.Final Answer:
Gathering user needs -> Option CQuick Check:
Requirements analysis = Gather needs [OK]
- Mixing coding or deployment with requirements
- Ignoring user input during analysis
- Confusing testing with requirements gathering
- System must handle 1000 users simultaneously
- Data must be encrypted
- Users can reset passwordsWhich requirement type is "Data must be encrypted"?
Solution
Step 1: Classify the requirement "Data must be encrypted"
This describes a quality or constraint on the system, not a specific function.Step 2: Understand requirement types
Functional requirements describe actions; non-functional describe qualities like security.Final Answer:
Non-functional requirement -> Option AQuick Check:
Encryption = Non-functional requirement [OK]
- Confusing security with functional features
- Mixing business goals with technical details
- Assuming all requirements are functional
Solution
Step 1: Identify conflicting statements
The document gives two different login methods without clarifying which is correct.Step 2: Understand impact of ambiguity
Ambiguous requirements confuse developers and cause design errors.Final Answer:
Ambiguous requirements -> Option BQuick Check:
Conflicting login info = Ambiguity [OK]
- Assuming security or performance issues without evidence
- Ignoring requirement conflicts
- Thinking scalability relates to login methods
Solution
Step 1: Identify best practices in requirements gathering
Interviewing users and analyzing competitors helps understand real needs and market standards.Step 2: Emphasize clear documentation of all requirements
Clear functional and non-functional requirements guide scalable and user-friendly design.Final Answer:
Interview users, analyze competitors, and document clear functional and non-functional needs -> Option AQuick Check:
User research + clear docs = good requirements [OK]
- Skipping user research
- Starting development without clear requirements
- Ignoring backend needs for scalability
