NestJS · Junior · Question 13 of 75
Why split an application into feature modules?
- 1Because Nest allows only one controller per module
- ✓Correct answer: To group related code, make dependencies explicit and keep large apps maintainable
- 3To make each module run in its own process
Explanation
A typical app has UsersModule, OrdersModule, AuthModule and so on, each with its own controllers, services and exports.