Reputation: 755
What are the benefits of an N-layered architecture? How does that make an application better?
Upvotes: 2
Views: 15567
Reputation: 499382
From here:
Upvotes: 14
Reputation: 3454
Firs of all, layered architecture is a type of "Modular Design". Hence, in order to appreciate the benefits of layered architecture, one needs to know what modular design is. Secondly, it is a special type of modular design, specifically organized to manage dependencies in order to minimize tight coupling, thus achieving the objectives of modular design - autonomous modles/components. When we have autonomous/independent modules, then they can be reused, extended, tested, and so on, compared to the case where the architecture/design is not modular.
I have an article about layered architecture, where I discuss these things in more detail. It might be helpful.
Layered Architecture Explained
Upvotes: 1
Reputation: 26428
Maintenance of and enhancements to the solution are easier due to the low coupling between layers, high cohesion between the layers, and the ability to switch out varying implementations of the layer interfaces.
Other solutions should be able to reuse functionality exposed by the various layers, especially if the layer interfaces are designed with reuse in mind.
Distributed development is easier if the work can be distributed at layer boundaries.
Distributing the layers over multiple physical tiers can improve scalability, fault-tolerance, and performance. For more information, see the Tiered Distribution pattern.
Testability benefits from having well-defined layer interfaces as well as the ability to switch out various implementations of the layer interfaces.
Benifits are
Upvotes: 2