Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is this okay to use UML component diagram for a 3-tier Architecture?

There are so many types of diagrams in UML. I am little confused about which one to use for what. I designed a 3-tier architecture for my web application software using UML Component Diagram. Please see the attached image and tell me if I'm doing this right or wrong. Is this a good idea to use Component Diagram for this architecture? enter image description here

like image 419
Tanjil Avatar asked Jan 29 '23 00:01

Tanjil


1 Answers

Basically I agree with @KeizerHarm's answer. However, there's a flaw in your diagram. Rather than packages you should use components since you put ports on their boundary. A port is not allowed for packages, but for components it is. Alternatively place the ports on the components inside the packages. The wiring can just cross the border of the packages:

enter image description here

like image 140
qwerty_so Avatar answered May 14 '23 06:05

qwerty_so