mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-09-04 18:20:09 +00:00
docs: add layered architecture diagram
This commit is contained in:
@@ -38,6 +38,10 @@ Wikipedia says
|
|||||||
|
|
||||||
> In software engineering, multitier architecture (often referred to as n-tier architecture) or multilayered architecture is a client–server architecture in which presentation, application processing, and data management functions are physically separated.
|
> In software engineering, multitier architecture (often referred to as n-tier architecture) or multilayered architecture is a client–server architecture in which presentation, application processing, and data management functions are physically separated.
|
||||||
|
|
||||||
|
Architecture diagram
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
## Programmatic Example of Layered Architecture in Java
|
## Programmatic Example of Layered Architecture in Java
|
||||||
|
|
||||||
On the data layer, we keep our cake building blocks. `Cake` consist of layers and topping.
|
On the data layer, we keep our cake building blocks. `Cake` consist of layers and topping.
|
||||||
@@ -86,10 +90,6 @@ public class CakeViewImpl implements View {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Layered Architecture Pattern Class Diagram
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
## When to Use the Layered Architecture Pattern in Java
|
## When to Use the Layered Architecture Pattern in Java
|
||||||
|
|
||||||
This pattern is suitable for structuring applications that can be divided into groups where each group has a specific role or responsibility. Common in enterprise applications, it simplifies dependencies, enhances maintainability, and supports scaling and technology stack segregation.
|
This pattern is suitable for structuring applications that can be divided into groups where each group has a specific role or responsibility. Common in enterprise applications, it simplifies dependencies, enhances maintainability, and supports scaling and technology stack segregation.
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 117 KiB |
Reference in New Issue
Block a user