diff --git a/front-controller/README.md b/front-controller/README.md index b4576c7ca..c04e9b519 100644 --- a/front-controller/README.md +++ b/front-controller/README.md @@ -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. diff --git a/front-controller/etc/front-controller-architecture-diagram.png b/front-controller/etc/front-controller-architecture-diagram.png new file mode 100644 index 000000000..1caa0dc3b Binary files /dev/null and b/front-controller/etc/front-controller-architecture-diagram.png differ