C4 Model vs UML
People think the C4 model is a kind of UML, and it is not. UML is a set of symbols with strict rules, and it has many kinds of diagram. C4 is a set of four zoom levels, from the whole system down to the code. It asks for no special symbols. Many teams draw C4 maps with plain boxes and arrows, and use UML only for the code level.
C4 Model
Four zoom levels for drawing software. Start with the big map and end at the code.
The C4 model is a way to draw software at four levels of zoom. The first level, system context, shows your system, the people who use it and the other systems it talks to. The second, containers, shows the apps and data stores inside it. The third, components, opens one container to show its main parts. The fourth, code, shows classes and is rarely drawn. Simon Brown made it, and it works with any drawing tool.
Unified Modeling Language (UML)
A set of standard drawings. They show how code is built and how it acts.
The Unified Modeling Language is a standard set of drawings for showing how software is built and how it acts. A class diagram shows classes as boxes, with lines for how they link. A sequence diagram shows messages passing between parts over time. It is a standard from the Object Management Group. Its latest version, 2.5.1, came out in December 2017.
In one line
- C4 Model
- Four zoom levels for drawing software. Start with the big map and end at the code.
- Unified Modeling Language (UML)
- A set of standard drawings. They show how code is built and how it acts.