Skip to content

Commit

Permalink
add: middleware illustration in web mvc design
Browse files Browse the repository at this point in the history
  • Loading branch information
FarrelAD committed Dec 28, 2024
1 parent 69787b8 commit 43f1f59
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions docs/diagram/web-mvc-illustration/web-mvc-illustration.plantuml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ package "Web Client" {
}

package "Web Server" {
component Middleware as MW {
[Authentication]
[Request Parsing]
}

component Controller as C {
[Request Handling]
[Routing Logic]
Expand All @@ -24,10 +29,12 @@ package "Database" {
database "DB" as DB
}

V -down-> C : "Request (GET, POST, etc.)"
V -down-> MW : "Request (GET, POST, etc.)"
MW -down-> C : "Validated/Processed Request"
C --> M : "Business Logic Call"
M --> DB : "Query/CRUD Operations"
DB --> M : "Data Response"
M --> C : "Processed Data"
C --> V : "Response (HTML/JSON)"
C -up-> MW : "Response (Data/HTML)"
MW -up-> V : "Response (Processed)"
@enduml
Binary file modified docs/diagram/web-mvc-illustration/web-mvc-illustration.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 43f1f59

Please sign in to comment.