Design Patterns · Senior · Question 39 of 75
What are afferent and efferent coupling of a module?
- ✓Correct answer: How many modules depend on it, and how many it depends on
- 2The module's network load speed and its size
- 3The number of incoming and outgoing HTTP requests of the module
Explanation
A module many others depend on (high afferent coupling) should be stable and abstract - e.g. shared/ui. A module depending on many others is unstable. The instability metric helps spot violations of dependency direction.