Requirements analysis identifies what a system must do and the conditions under which it must operate. It provides the foundation for making appropriate system design decisions.

1. Functional Requirements
Functional requirements describe the features and operations a system must perform. They define how the system responds to user actions, inputs, and events.
Common Functional Requirements:
- User Authentication: Allows users to register, log in, and access their accounts.
- Data Processing: Specifies operations such as saving user details, updating records, and retrieving information.
- Business Operations: Specifies actions such as placing orders, transferring money, or generating reports.
- Search and Filtering: Allows users to search for information and filter results.
2. Non-Functional Requirements
Non-functional requirements define how well a system should perform its operations. They specify quality attributes and constraints that influence system architecture.
Common Non-Functional Requirements:
- Performance: Measures response time, latency, and throughput.
- Scalability: Ability to handle growing users, requests, and data by increasing system capacity.
- Availability: Measures how consistently the system remains operational.
- Reliability: Ability to operate correctly and recover from failures.
- Security: Protects data and prevents unauthorized access.
- Maintainability: Ease of updating, testing, and modifying the system.
Example of Functional and Non-Functional Requirements:
Consider an online banking system where customers can access accounts, transfer money, and view transactions.
Functional Requirements:
- Users can log in to their accounts.
- Users can view account balances.
- Users can transfer money between supported accounts.
- Users receive transaction notifications.
Non-Functional Requirements:
- 95% of balance requests should complete within 2 seconds under a workload of 1,000 balance requests per second.
- Sensitive data must be encrypted both at rest and in transit.
- The system should maintain 99.9% availability each month.
- The system should handle at least 1,000 transactions per second during peak traffic.
Functional vs Non-Functional Requirements
| Difference | Functional Requirements | Non-Functional Requirements |
|---|---|---|
| Purpose | What the system should do | How well the system should operate |
| Focus | Features and behavior | Quality attributes and constraints |
| Testing | Functional testing | Performance, security, and load testing |
| Design Impact | Defines required functionality | Strongly influences architecture and technology decisions |

