docs: add front controller architecture diagram

This commit is contained in:
Ilkka Seppälä
2025-03-01 13:45:49 +02:00
parent a10c392425
commit 546c7ecf53
2 changed files with 5 additions and 4 deletions
+5 -4
View File
@@ -34,6 +34,11 @@ Wikipedia says
> 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.
Architecture diagram
![Front Controller Architecture Diagram](./etc/front-controller-architecture-diagram.png)
## Programmatic Example of Front Controller Pattern in Java
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
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.
## Detailed Explanation of Front Controller Pattern with Real-World Examples
![Front Controller](./etc/front-controller.png "Front Controller")
## When to Use the Front Controller Pattern in Java
* The Front Controller design pattern is particularly useful for Java web applications that require a centralized mechanism for request handling.
Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB