UPI Study › Courses › Software Engineering › Free lessons › Lesson 8.3 Free with a free account
Mapping Deployment with UML Diagrams
Software Engineering · Chapter 8: Object-Oriented Design and ArchitectureSection 8.3 · lesson 57 of 1035 min · free with a free account
Free preview
Create a free account to keep watching
It takes a minute and costs nothing. Your free account unlocks all of Chapter 1 and 3 more lessons of Software Engineering.
Lesson complete
Earn the 3 college credits for Software Engineering
Enrolling adds a quiz after each lesson, the graded work and the official transcript. Recommended for credit by NCCRS.
Next lesson: Reading and Creating Conceptual Architecture Diagrams →← Components of a Complete Design ModelNext lesson: Reading and Creating Conceptual Architecture Diagrams →
In this lesson
Where the software actually runs.
- Explain what a deployment diagram shows
- Identify nodes, artifacts, and communication paths
- Explain what it means to nest 1 node inside another
- Interpret a complete deployment diagram
Transcript
Everything said in the video, section by section (727 words). Read along, or search it.
Object-Oriented Design and Architecture
Mapping Deployment with UML Diagrams
Every diagram so far has shown software as ideas. Classes, objects, and interactions. At some point, all of that has to actually run somewhere. This section covers the diagram that shows where. The U M L deployment diagram.
From Ideas to Hardware
Where Does It All Run?
Class diagrams, sequence diagrams, and use case diagrams all describe software in logical terms. What the pieces are, how they relate, and how they behave. None of them says where any of it physically runs. A deployment diagram fills that gap. It shows the physical or virtual hardware a system runs on, and which piece of software runs on which piece of hardware. That matters once a system is more than one program on one machine. A web app might run partly on a user's device, partly on a web server, and partly on a database server.
Table 1
3 Building Blocks
A deployment diagram is built from three elements. A node is drawn as a three-dimensional box. It is a piece of physical or virtual hardware that can run software, like a server, a device, or a virtual machine. An artifact is a labeled rectangle placed inside a node. It is a deployable unit of software, like an executable, a packaged application, or a data file. And a communication path is a line connecting two nodes, often labeled with a protocol. It is the connection the nodes use to exchange data.
Figures 1 and 2
A Simple Web Application
Here is a deployment diagram for a simple web application. There are three hardware nodes. A client device, a web server machine, and a database server. Each one runs an artifact. The browser, an application package called app dot war, and a database file called orders dot d b. And inside the web server machine, you can see a second node, the application server, with the application deployed inside that.
Reading the Diagram
Artifacts, Nodes, and Protocols
Let's read it from left to right. The browser runs on the client device, and communicates over H T T P S with the application on the web server. The application communicates over J D B C and T C P with the orders database, on the database server. Notice that each communication path shows not just that two nodes are connected, but what protocol carries that connection.
Nested Nodes
Layers on 1 Machine
A single physical machine often runs more than one layer of environment at once. An operating system, then a runtime environment inside it, and the actual software inside that. Deployment diagrams capture this by nesting one node inside another. Here, the application server, a Java virtual machine, is a node nested inside the physical web server machine. The application is deployed inside that. The nesting reflects a real, physical fact. The application server cannot exist without the machine that hosts it.
Think About It
More Detail, or a Different Meaning?
Here is a question to think about. Suppose a diagram showed the web server as one plain node, and then someone expanded it to show the nested application server. Would that change what the diagram means? No. It only changes how much detail it shows. Both versions describe the same physical arrangement. The nested version simply makes explicit a layer of environment the simpler one left implicit.
Apply It
A Mobile App and a Cloud API
Let's apply that. A mobile app runs directly on a user's phone. It communicates with an API hosted in the cloud, over H T T P S. As a deployment diagram, that is two nodes. A phone node, containing the mobile app artifact. And a cloud server node, containing the API artifact. A communication path labeled H T T P S connects the two.
Key Terms
The Vocabulary of This Section
Let's lock in the key terms. A deployment diagram shows the physical or virtual hardware a system runs on, and which software artifacts run on each piece. A node is a piece of hardware able to run software, drawn as a three-dimensional box. An artifact is a deployable unit of software, drawn inside a node. A communication path is a line between two nodes, often labeled with the protocol it uses. And an execution environment is a runtime node, like an application server, that itself runs on another, physical node.
Key Takeaways
What to Carry Forward
To pull this together. A deployment diagram shows where software physically runs, which the logical diagrams never do. Its three elements are nodes, artifacts, and communication paths. A node can be nested inside another, to show a real dependency, like an application server running on a specific machine. And nesting only adds detail. It does not change the physical arrangement being described.
About Software Engineering at UPI Study
Software Engineering (Computer Science 301) is a self-paced online course of 103 video lessons in 15 chapters, from process models and agile to requirements, design, user interfaces, reliability, security and project management. It carries a NCCRS credit recommendation for 3 semester credits.
Every lesson transcript is free on pages like this one, and the videos are free with a free UPI Study account. Enrolling adds a practice quiz after each lesson, the graded work and final exam that earn the credit, lifetime access, and an official transcript on completion. UPI Study has helped over 130,000 students with college credits. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.
Enroll now → Course details Download the syllabus All Computer Science courses Every course with PRO →
Why take it here
Why students take Software Engineering with UPI Study
Where the credit goes
Universities that work with NCCRS
Software Engineering carries a NCCRS credit recommendation. These universities work with NCCRS; some are UPI Study's signed partners. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.
Thomas Edison State UniversitySigned partner
University of the PeopleSigned partner
Charter Oak State CollegeSigned partner
Strayer UniversitySigned partner
Columbia Southern UniversitySigned partner
Indiana TechSigned partner
Penn StateWorks with NCCRS
Southern New Hampshire UniversityWorks with NCCRS
SUNYWorks with NCCRS
+many more cooperating universitiesFind my college →Find my college → Not listed? Ask Athena in the corner of this page, or book a 15-minute call.
FAQ
Questions students ask us
About Mapping Deployment with UML Diagrams
What does a UML deployment diagram show?
What are nodes, artifacts, and communication paths in a deployment diagram?
What does it mean to nest one node inside another in a deployment diagram?
How would you draw a deployment diagram for a mobile app that calls a cloud API?
About the Software Engineering course
How many college credits is Software Engineering?
How much does Software Engineering cost and what is included?
Which universities accept UPI Study credits?
How long does Software Engineering take?
How are the exams done?
How do my credits reach my college?
Ready for the full course? Earn 3 credits in Software Engineering.
103 video lessons, a quiz after each one, and the graded work that earns the credit. Recommended for credit by NCCRS.
3 credits · NCCRSEnroll →