| Users | Functional Requirements | Non-Functional Requirements | Impact on Design |
|---|---|---|---|
| 100 users | Basic features, simple workflows | Minimal performance, basic security | Simple architecture, monolithic app possible |
| 10,000 users | More features, user roles, error handling | Improved performance, availability, security | Modular design, caching, load balancing |
| 1,000,000 users | Complex workflows, integrations, multi-tenancy | High availability, scalability, strict security | Microservices, distributed systems, CDN |
| 100,000,000 users | Global features, personalization, compliance | Extreme scalability, disaster recovery, compliance | Multi-region deployment, sharding, automation |
Requirements gathering (functional and non-functional) in HLD - Scalability & System Analysis
When requirements are not well gathered, the system design may miss critical features or constraints. This leads to rework, poor scalability, and user dissatisfaction. At small scale, this causes delays. At large scale, it causes costly redesigns and failures.
- Stakeholder Interviews: Engage all users and stakeholders early to capture needs.
- Use Cases & User Stories: Define clear scenarios to understand functional needs.
- Non-Functional Workshops: Discuss performance, security, and compliance early.
- Prototyping: Build simple models to validate assumptions.
- Iterative Refinement: Continuously update requirements as feedback arrives.
- Documentation & Traceability: Keep clear records to track changes and decisions.
Good requirements reduce costly redesigns. For example, a missed security requirement can cause expensive fixes later. Early investment in gathering requirements saves time and money during scaling.
- Time spent interviewing: ~10-20 hours per major stakeholder group
- Prototyping cost: Low compared to rework
- Documentation effort: Ongoing but small compared to development
- Cost of missed requirements: Can be 10x or more in rework and downtime
Start by explaining the difference between functional and non-functional requirements. Then discuss how incomplete requirements cause bottlenecks. Next, describe how improving requirements gathering scales the system design process. Finally, give examples of techniques and their impact on cost and time.
Your project has 1000 users and basic requirements. Now you expect 10x growth and new security needs. What is your first action?
Answer: Revisit and expand the requirements gathering process to include new functional and non-functional needs, especially security. This ensures the design can scale properly without costly rework.