Junior — Middle
Explain the concept of cohesion between components in a system and why it is important for application architecture.
sobes.tech AI
Answer from AI
Coupling is the degree of dependency between system components. The higher the coupling, the more components depend on each other.
Low coupling occurs when components are weakly connected and interact through well-defined interfaces. This facilitates support, testing, and scaling of the application, as changes in one component minimally affect others.
High coupling complicates the architecture: components are tightly intertwined, making changes difficult and increasing the risk of errors.
Therefore, in application architecture, low coupling is preferred to enhance system flexibility and robustness.