docs: add layered architecture diagram

This commit is contained in:
Ilkka Seppälä
2025-03-03 20:45:04 +02:00
parent d0701d6471
commit d78337e4b6
2 changed files with 4 additions and 4 deletions
+4 -4
View File
@@ -38,6 +38,10 @@ Wikipedia says
> In software engineering, multitier architecture (often referred to as n-tier architecture) or multilayered architecture is a clientserver architecture in which presentation, application processing, and data management functions are physically separated.
Architecture diagram
![Layered Architecture Diagram](./etc/layered-architecture-diagram.png)
## Programmatic Example of Layered Architecture in Java
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
![Layered Architecture](./etc/layers.png "Layered Architecture")
## 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.
Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB