Skip to content

Commit 546c7ec

Browse files
committed
docs: add front controller architecture diagram
1 parent a10c392 commit 546c7ec

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

front-controller/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ Wikipedia says
3434

3535
> The front controller software design pattern is listed in several pattern catalogs and is related to the design of web applications. It is "a controller that handles all requests for a website", which is a useful structure for web application developers to achieve flexibility and reuse without code redundancy.
3636
37+
Architecture diagram
38+
39+
![Front Controller Architecture Diagram](./etc/front-controller-architecture-diagram.png)
40+
41+
3742
## Programmatic Example of Front Controller Pattern in Java
3843

3944
The Front Controller design pattern is a pattern that provides a centralized entry point for handling all requests in a web application. It ensures that request handling is managed consistently and efficiently across an application.
@@ -104,10 +109,6 @@ In this example, when a request is received, the `FrontController` delegates the
104109

105110
This is a basic example of the Front Controller pattern, where all requests are handled by a single controller and dispatcher, ensuring consistent and efficient request handling.
106111

107-
## Detailed Explanation of Front Controller Pattern with Real-World Examples
108-
109-
![Front Controller](./etc/front-controller.png "Front Controller")
110-
111112
## When to Use the Front Controller Pattern in Java
112113

113114
* The Front Controller design pattern is particularly useful for Java web applications that require a centralized mechanism for request handling.
46 KB
Loading

0 commit comments

Comments
 (0)