liveBook · Manning

C4 model

As explained in Robotics for Programmers

The 4C model is a software architecture visualization approach that describes systems through context, containers, components, and code.

The C4 model is a hierarchical way to visualize software architecture by mentally zooming between four levels of abstraction: system context, container, component, and code. section 2.2

Use the four levels to frame a robot software system at different scales:

  • System Context: relate the overall system to the surrounding world. section 2.2
  • Container: show high-level technical building blocks or subsystems. section 2.2
  • Component: show the components within one container. section 2.2
  • Code: show classes and objects within one component. section 2.2

Zooming through robot architecture

A robotics architecture discussion can move from the system’s relationship with its environment, through technical subsystems, into components, and finally to classes or objects. Each level keeps the diagram focused on the relevant abstraction. section 2.2

How Robotics for Programmers covers it

How deep it goes
Defines four abstraction levels but does not elaborate their diagram notation or semantics in detail.
Examples
Uses architectural diagrams spanning system context, containers, components, code, and 4+1 logical, process, development, and deployment views.
What you can do after
Evaluate/understand software designs by selecting an appropriate architectural level for discussion.
How it connects
Connects software architecture with the 4+1 architectural view model and robot software stack.

Also explained in

Compare how 3 books explain C4 model →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Robotics for Programmers. The section links point to the parts of the book it draws on.