{"url": "https://c4model.com/", "titulek": "Home | C4 model", "h1": "The C4 model for visualising software architecture", "popis": "C4 model", "klicova_slova": "", "kanonicka": "https://c4model.com/", "jazyk": "en-US", "robots_meta": "", "og": {"og:title": "Home", "og:locale": "en_US", "og:description": "C4 model", "og:url": "https://c4model.com/", "og:site_name": "C4 model", "og:type": "website"}, "jsonld": [{"@context": "https://schema.org", "@type": "WebSite", "description": "C4 model", "headline": "Home", "name": "C4 model", "url": "https://c4model.com/"}], "drobecky": [], "osnova": [{"uroven": 1, "text": "The C4 model for visualising software architecture"}, {"uroven": 2, "text": "About this website"}], "markdown": "# The C4 model for visualising software architecture\n\nThe C4 model is an easy to learn, developer friendly approach to software architecture diagramming:\n\n1. A set of [hierarchical abstractions](/abstractions) - [software systems](/abstractions/software-system) , [containers](/abstractions/container) , [components](/abstractions/component) , and [code](/abstractions/code) .\n2. A set of [hierarchical diagrams](/diagrams) - [system context](/diagrams/system-context) , [containers](/diagrams/container) , [components](/diagrams/component) , and [code](/diagrams/code) .\n3. An additional set of supporting diagrams - [system landscape](/diagrams/system-landscape) , [dynamic](/diagrams/dynamic) , and [deployment](/diagrams/deployment) .\n4. [Notation independent](/diagrams/notation) .\n5. [Tooling independent](/tooling) .\n\n| **Visualising software architecture with the C4 model** \n Recorded at \"Agile on the Beach 2019\", July 2019 | **The C4 model** \nSimon Brown |\n| --- | --- |\n\n## About this website\n\nThis is the official website for the “C4 model for visualising software architecture”, written by its creator [Simon Brown](https://simonbrown.je).", "znaku_textu": 1114, "slov": 123, "odkazu": 34, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:16:54", "sha256": "5c2ac1d09ecb2802bf061be0b475a945dd47c235b4e4075e6a2e679c9c0477ed", "hloubka": 0, "zdroj_objevu": "seed", "ze_seznamu": true, "mime": "text/html", "odkazy_externi": ["https://www.oreilly.com/library/view/the-c4-model/9798341660113/", "https://www.youtube.com/watch?v=x2-rSnhpw0g", "https://simonbrown.je/workshops", "https://www.patreon.com/c4model", "https://creativecommons.org/licenses/by/4.0/", "https://simonbrown.je/"]} {"url": "https://c4model.com/abstractions", "titulek": "Abstractions | C4 model", "h1": "Abstractions", "popis": "The C4 model for visualising software architecture (official website)", "klicova_slova": "", "kanonicka": "https://c4model.com/abstractions", "jazyk": "en-US", "robots_meta": "", "og": {"og:title": "Abstractions", "og:locale": "en_US", "og:description": "The C4 model for visualising software architecture (official website)", "og:url": "https://c4model.com/abstractions", "og:site_name": "C4 model", "og:type": "website"}, "jsonld": [{"@context": "https://schema.org", "@type": "WebPage", "description": "The C4 model for visualising software architecture (official website)", "headline": "Abstractions", "url": "https://c4model.com/abstractions"}], "drobecky": [], "osnova": [{"uroven": 1, "text": "Abstractions"}], "markdown": "# Abstractions\n\nIn order to create some “maps of your code”, we first need a common set of abstractions that we can use to describe the static structure of a software system. In the C4 model:\n\n> A [software system](/abstractions/software-system) is made up of one or more [containers](/abstractions/container) (applications and data stores), each of which contains one or more [components](/abstractions/component), which in turn are implemented by one or more [code](/abstractions/code) elements (classes, interfaces, objects, functions, etc). And people (actors, roles, personas, named individuals, etc) use the software systems that we build.\n\nThe C4 model is an “abstraction-first” approach to diagramming software architecture, based upon abstractions that reflect how software architects and developers think about and build software. The small set of abstractions and diagram types makes the C4 model easy to learn and use.", "znaku_textu": 924, "slov": 134, "odkazu": 32, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:16:57", "sha256": "055dbc8ccdea26bcd7393e653e67aa0c422c2a67317f80b41c6f191a12b4a561", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://www.oreilly.com/library/view/the-c4-model/9798341660113/", "https://www.youtube.com/watch?v=x2-rSnhpw0g", "https://simonbrown.je/workshops", "https://www.patreon.com/c4model", "https://creativecommons.org/licenses/by/4.0/"]} {"url": "https://c4model.com/abstractions/code", "titulek": "Code | C4 model", "h1": "Code", "popis": "The C4 model for visualising software architecture (official website)", "klicova_slova": "", "kanonicka": "https://c4model.com/abstractions/code", "jazyk": "en-US", "robots_meta": "", "og": {"og:title": "Code", "og:locale": "en_US", "og:description": "The C4 model for visualising software architecture (official website)", "og:url": "https://c4model.com/abstractions/code", "og:site_name": "C4 model", "og:type": "website"}, "jsonld": [{"@context": "https://schema.org", "@type": "WebPage", "description": "The C4 model for visualising software architecture (official website)", "headline": "Code", "url": "https://c4model.com/abstractions/code"}], "drobecky": ["Abstractions", "4. Code"], "osnova": [{"uroven": 1, "text": "Code"}], "markdown": "# Code\n\nFinally, components are made up of one or more code elements constructed with the basic building blocks of the programming language that you’re using - classes, interfaces, enums, functions, objects, etc.", "znaku_textu": 207, "slov": 31, "odkazu": 32, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:17:01", "sha256": "ffe2007a22cfa2eb3a193b701bd4e1771df510c30abbac5340c934902bd2ce83", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://www.oreilly.com/library/view/the-c4-model/9798341660113/", "https://www.youtube.com/watch?v=x2-rSnhpw0g", "https://simonbrown.je/workshops", "https://www.patreon.com/c4model", "https://creativecommons.org/licenses/by/4.0/"]} {"url": "https://c4model.com/abstractions/component", "titulek": "Component | C4 model", "h1": "Component", "popis": "The C4 model for visualising software architecture (official website)", "klicova_slova": "", "kanonicka": "https://c4model.com/abstractions/component", "jazyk": "en-US", "robots_meta": "", "og": {"og:title": "Component", "og:locale": "en_US", "og:description": "The C4 model for visualising software architecture (official website)", "og:url": "https://c4model.com/abstractions/component", "og:site_name": "C4 model", "og:type": "website"}, "jsonld": [{"@context": "https://schema.org", "@type": "WebPage", "description": "The C4 model for visualising software architecture (official website)", "headline": "Component", "url": "https://c4model.com/abstractions/component"}], "drobecky": ["Abstractions", "3. Component"], "osnova": [{"uroven": 1, "text": "Component"}, {"uroven": 2, "text": "Components vs code?"}, {"uroven": 2, "text": "FAQ"}, {"uroven": 3, "text": "Is a Java JAR, C# assembly, DLL, module, package, namespace, folder etc a component?"}], "markdown": "# Component\n\nThe word “component” is a hugely overloaded term in the software development industry but, in the C4 model, a component is a grouping of related functionality encapsulated behind a well-defined interface. If you’re using a language like Java or C#, the simplest way to think of a component is that it’s a collection of implementation classes behind an interface.\n\nWith the C4 model, components are *not* separately deployable units. Instead, it’s the container that’s the deployable unit. In other words, all components inside a container execute in the same process space. Aspects such as how components are packaged (e.g. one component vs many components per JAR file, DLL, shared library, etc) is an orthogonal concern.\n\n## Components vs code?\n\nA component is a way to step up one level of abstraction from the code-level building blocks that you have in the programming language that you’re using. For example:\n\n- **Object-oriented programming languages (e.g. Java, C#, C++, etc)** : A component is made up of classes and interfaces.\n- **Procedural programming languages (e.g. C)** : A component could be made up of a number of C files in a particular directory.\n- **JavaScript** : A component could be a JavaScript module, which is made up of a number of objects and functions.\n- **Functional programming languages** : A component could be a module (a concept supported by languages such as F#, Haskell, etc), which is a logical grouping of related functions, types, etc.\n\nIf you’re using an object-oriented programming language, your components will be implemented using one or more classes. Let’s look at a quick example to better define what a component is in the context of some code.\n\nThe [Spring PetClinic](https://github.com/spring-projects/spring-petclinic) application is a sample codebase that illustrates how to build a Java web application using the Spring MVC framework. From a non-technical perspective, it’s a software system designed for an imaginary pet clinic that stores information about pets and their owners, visits made to the clinic, and the vets who work there. The system is only designed to be used by employees of the clinic. From a technical perspective, the Spring PetClinic system consists of a web application and a relational database schema.\n\nThe version1 of the web application we’ll look at here is a typical layered architecture consisting of a number of web MVC controllers, a service containing “business logic” and some repositories for data access. There are also some domain and util classes too. If you download a copy of the GitHub repository2, open it in your IDE of choice and visualise it by reverse-engineering a UML class diagram from the code, you’ll get something like this.\n\nAs you would expect, this diagram is showing you all the Java classes and interfaces that make up the Spring PetClinic web application, plus all the relationships between them. The properties and methods are hidden on the diagram because they add too much noise to the picture. This isn’t a complex codebase by any stretch of the imagination but, by showing classes and interfaces, the diagram is showing too much detail.\n\nLet’s remove those classes that aren’t useful to having an “architecture” discussion about the system. In other words, let’s only show those classes/interfaces that have some significance from a static structure perspective. In concrete terms, for this specific codebase, it means excluding the model/domain classes (they are just data structures) and util classes.\n\nAfter a little rearranging, we now have a simpler diagram with which to reason about the software architecture. We can also see the architectural layers again (controllers, services and repositories). But this diagram is still showing *code-level elements* (i.e. classes and interfaces). In order to zoom up one level, we need to identify which of these code-level elements can be grouped together to form “components”. The strategy for grouping code-level elements into components will vary from codebase to codebase but, for this codebase, the strategy might look like this.\n\nEach of the blue boxes represents a “component” in this codebase. In summary, each of the web controllers is a separate component, along with the result of combining the remaining interfaces and their implementation classes. If we remove the code level noise, we get a picture like this.\n\nIn essence, we’re grouping the classes and interfaces into components to form units of related functionality. You will likely have shared code (e.g. abstract base classes, supporting classes, helper classes, utility classes, etc) that are used across many components, such as the `JdbcPetVisitExtractor` in this example. Some can be refactored and moved “inside” a particular component, but some of them are inevitable.\n\nAlthough this example illustrates a traditional layered architecture, the same principles are applicable regardless of how you package your code (e.g. by layer, feature or component) or the architectural style in use (e.g. layered, hexagonal, ports and adapters, etc). If your codebase is small enough, you can go through this process manually. For larger codebases though, you’ll likely want to consider automatic generation of component diagrams by reverse-engineering your codebase ([example](https://github.com/structurizr/java/blob/master/structurizr-dsl/src/test/resources/dsl/spring-petclinic/workspace.dsl)).\n\n- 1 the diagrams shown here do not reflect the latest version of the Spring PetClinic, but are sufficient for the discussion\n- 2 `git checkout 95de1d9f8bf63560915331664b27a4a75ce1f1f6` is the version these diagrams were based upon\n\n## FAQ\n\n### Is a Java JAR, C# assembly, DLL, module, package, namespace, folder etc a component?\n\nPerhaps but, again, typically not. The C4 model is about showing the runtime units (containers) and how functionality is partitioned across them (components), rather than organisational units such as Java JAR files, C# assemblies, DLLs, modules, packages, namespaces or folder structures.\n\nOf course, there may be a one-to-one mapping between these constructs and a component; e.g. if you’re building a hexagonal architecture, you may create a single Java JAR file or C# assembly per component. On the other hand, a single component might be implemented using code from a number of JAR files, which is typically what happens when you start to consider third-party frameworks/libraries, and how they become embedded in your codebase.", "znaku_textu": 6442, "slov": 1011, "odkazu": 41, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:17:00", "sha256": "0089b1989e94e4ba1e32d56c673ecd0f9906aad406b1aa32e35d1747f63b45d1", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://www.oreilly.com/library/view/the-c4-model/9798341660113/", "https://www.youtube.com/watch?v=x2-rSnhpw0g", "https://simonbrown.je/workshops", "https://www.patreon.com/c4model", "https://creativecommons.org/licenses/by/4.0/", "https://github.com/spring-projects/spring-petclinic", "https://github.com/structurizr/java/blob/master/structurizr-dsl/src/test/resources/dsl/spring-petclinic/workspace.dsl"]} {"url": "https://c4model.com/abstractions/container", "titulek": "Container | C4 model", "h1": "Container", "popis": "The C4 model for visualising software architecture (official website)", "klicova_slova": "", "kanonicka": "https://c4model.com/abstractions/container", "jazyk": "en-US", "robots_meta": "", "og": {"og:title": "Container", "og:locale": "en_US", "og:description": "The C4 model for visualising software architecture (official website)", "og:url": "https://c4model.com/abstractions/container", "og:site_name": "C4 model", "og:type": "website"}, "jsonld": [{"@context": "https://schema.org", "@type": "WebPage", "description": "The C4 model for visualising software architecture (official website)", "headline": "Container", "url": "https://c4model.com/abstractions/container"}], "drobecky": ["Abstractions", "2. Container"], "osnova": [{"uroven": 1, "text": "Container"}, {"uroven": 2, "text": "FAQ"}, {"uroven": 3, "text": "Why “container”?"}, {"uroven": 3, "text": "Web applications; one container or two?"}, {"uroven": 3, "text": "Is a Java JAR, C# assembly, DLL, module, etc a container?"}, {"uroven": 3, "text": "Should data storage services be shown as software systems or containers?"}], "markdown": "# Container\n\nNot Docker! In the C4 model, a container represents an **application** or a **data store**. A container is something that needs to be running in order for the overall software system to work. In real terms, a container is something like:\n\n- **Server-side web application** : A Java EE web application running on Apache Tomcat, an ASP.NET MVC application running on Microsoft IIS, a Ruby on Rails application running on WEBrick, a Node.js application, etc.\n- **Client-side web application** : A JavaScript application running in a web browser using Angular, Backbone.JS, jQuery, etc.\n- **Client-side desktop application** : A Windows desktop application written using WPF, an OS X desktop application written using Objective-C, a cross-platform desktop application written using JavaFX, etc.\n- **Mobile app** : An Apple iOS app, an Android app, a Microsoft Windows Phone app, etc.\n- **Server-side console application** : A standalone (e.g. “public static void main”) application, a batch process, etc.\n- **Serverless function** : A single serverless function (e.g. Amazon Lambda, Azure Function, etc).\n- **Database** : A schema or database in a relational database management system, document store, graph database, etc such as MySQL, Microsoft SQL Server, Oracle Database, MongoDB, Riak, Cassandra, Neo4j, etc.\n- **Blob or content store** : A blob store (e.g. Amazon S3, Microsoft Azure Blob Storage, etc) or content delivery network (e.g. Akamai, Amazon CloudFront, etc).\n- **File system** : A full local file system or a portion of a larger networked file system (e.g. SAN, NAS, etc).\n- **Shell script** : A single shell script written in Bash, etc.\n- etc\n\nA container is essentially a runtime boundary around some code that is being executed or some data that is being stored. The name “container” was chosen because I wanted a name that didn’t imply anything about the physical nature of how that container is executed. For example, a single Java EE server like Apache Tomcat can run multiple web applications inside a single Java Virtual Machine, although each of those web applications is essentially isolated from the others. At development time I might have three web applications running on a single Apache Tomcat server, while each web application may be deployed onto a dedicated Apache Tomcat server in a live environment. In this situation, each web application is a “C4 container”, with the deployment being a separate concern.\n\n## FAQ\n\n### Why “container”?\n\nTerms like “process”, “application”, “app”, “server”, “deployable unit”, etc all have associated implications, so the name “container” was chosen as a generic way to describe something in which components live. From one perspective, it’s unfortunate that containerisation has become popular, because many software developers now associate the term “container” with Docker. From another perspective though, there is sometimes a nice parity between a container in the C4 model and an infrastructure (e.g. Docker) container.\n\nWhile many teams successfully use the C4 model as is, feel free to change the terminology if needed.\n\n### Web applications; one container or two?\n\nIf you’re building a server-side web application (e.g. Spring MVC, ASP.NET, Ruby on Rails, Django, etc) that is predominantly generating static HTML content, then that’s a single container. If there’s a significant quantity of JavaScript being delivered by the server-side web application (e.g. a single-page application built using Angular), then that’s two containers.\n\nAlthough, at deployment time, the server-side web application includes both the server-side and client-side code, treating the client and server as two separate containers makes it explicit that these are two separate process spaces, communicating via an inter-process/remote communication mechanism (e.g. JSON/HTTPS). It also provides a basis for zooming in to each container separately to show the components inside them.\n\n### Is a Java JAR, C# assembly, DLL, module, etc a container?\n\nTypically not. A container is a runtime construct, like an application; whereas Java JAR files, C# assemblies, DLLs, modules, etc are used to organise the code within those applications.\n\n### Should data storage services be shown as software systems or containers?\n\nA frequently asked question is whether services like Amazon S3, Amazon RDS, Azure SQL Database, content delivery networks, etc should be shown as software systems or containers. After all, these are external services that most of us don’t own or run ourselves.\n\nIf you’re building a software system that is using Amazon S3 for storing data, it’s true that you don’t run S3 yourself, but you do have ownership and responsibility for the buckets you are using. Similarly with Amazon RDS, you have (more or less) complete control over any database schemas that you create. For this reason, treat them as containers because they are an integral part of your software architecture, although they are hosted elsewhere.", "znaku_textu": 4967, "slov": 776, "odkazu": 37, "kodovani": "windows-1250", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:16:59", "sha256": "2946498f1f1f3c55cda72f30059e7dcf4b7d6e12b39c9dd6d94075ef5a29f2dc", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://www.oreilly.com/library/view/the-c4-model/9798341660113/", "https://www.youtube.com/watch?v=x2-rSnhpw0g", "https://simonbrown.je/workshops", "https://www.patreon.com/c4model", "https://creativecommons.org/licenses/by/4.0/"]} {"url": "https://c4model.com/abstractions/faq", "titulek": "FAQ | C4 model", "h1": "Frequently asked questions", "popis": "The C4 model for visualising software architecture (official website)", "klicova_slova": "", "kanonicka": "https://c4model.com/abstractions/faq", "jazyk": "en-US", "robots_meta": "", "og": {"og:title": "FAQ", "og:locale": "en_US", "og:description": "The C4 model for visualising software architecture (official website)", "og:url": "https://c4model.com/abstractions/faq", "og:site_name": "C4 model", "og:type": "website"}, "jsonld": [{"@context": "https://schema.org", "@type": "WebPage", "description": "The C4 model for visualising software architecture (official website)", "headline": "FAQ", "url": "https://c4model.com/abstractions/faq"}], "drobecky": ["Abstractions", "FAQ"], "osnova": [{"uroven": 1, "text": "Frequently asked questions"}, {"uroven": 2, "text": "Can we change the terminology?"}, {"uroven": 2, "text": "Can we add more abstraction levels?"}], "markdown": "# Frequently asked questions\n\n## Can we change the terminology?\n\nThis terminology (context, containers, components and code) works for many organisations and many types of software. However, sometimes an organisation will have an existing terminology that people are already familiar with. Or perhaps “components” and “classes” don’t easily map on to the technology being used (e.g. functional languages often use the terms “module” and “function”).\n\nFeel free to modify the terminology that you use to describe software architecture at different levels of abstraction. Just make sure that everybody explicitly understands it.\n\n## Can we add more abstraction levels?\n\n> “A database is a database; debating whether it is also a Container or a Component just isn’t worthwhile.”\n\nThis quote, from a [blog post](https://www.ilograph.com/blog/posts/concrete-diagramming-models/), raises a couple of interesting questions about the C4 model:\n\n1. Are the four levels of abstraction too limited?\n2. Can we add more levels of abstraction?\n\nModern software systems are comprised of many different types of compile-time, runtime, deployment, and infrastructure building blocks. With this in mind, it can sometimes be difficult to categorise each of these into the various abstractions that make up the C4 model. A seemingly easier approach is to just add more levels of abstraction as required, rather than spending time debating whether a “database” is a container or a component.\n\nThe problem here is that we’re often too imprecise with the terminology that we use in our day-to-day work, which leads us to make the wrong decisions when trying to categorise the building blocks that make up our software systems. The word “database” is used in the quote above, but is it being used to refer to a database server, a database schema, a collection of related data, or something else entirely? Why is this important? As an example, the definition of the word “database” dramatically affects the meaning of the following statement:\n\n> “microservices shouldn’t share a database”\n\nAs an industry, we need to be more precise with the terminology that we use. Debating whether a database is a container or a component forces you to understand exactly what you mean by the word “database”, before mapping it onto the abstraction levels provided by the C4 model. The power of the C4 model is the small set of fixed/named hierarchical abstractions that help teams reason about their software systems in a structured and more precise way, both within and across engineering teams.\n\nWhenever teams say, “C4 is too limiting - we need more abstractions for more flexibility”, it’s usually for one of the following reasons:\n\n- The team has misunderstood the C4 model and are misusing the abstraction levels, requiring more to be added.\n- Teams want to add more abstraction levels in order to model things that are really organisational constructs or groupings, rather than abstractions in their own right - subsystems, bounded contexts, layers, libraries, etc.\n\nAlthough the C4 model provides enough for most software development teams, you should certainly feel that you can add more abstraction levels if you have a genuine need. After all, the agile mindset tells us to “inspect and adapt” in order to improve the way that we work. This should be seen as an advanced manoeuvre though, and you should only consider doing it if you’re willing to put the effort into precisely defining those additional levels of abstraction. Failure to do so will ultimately lead you back to where we are today, with diagrams showing ad hoc abstractions caused by an impreciseness of terminology.", "znaku_textu": 3686, "slov": 579, "odkazu": 35, "kodovani": "windows-1250", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:17:04", "sha256": "9ef5b618c973cebaede45faad48aeda16497fedff4b46de8b59a078515e19866", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://www.oreilly.com/library/view/the-c4-model/9798341660113/", "https://www.youtube.com/watch?v=x2-rSnhpw0g", "https://simonbrown.je/workshops", "https://www.patreon.com/c4model", "https://creativecommons.org/licenses/by/4.0/", "https://www.ilograph.com/blog/posts/concrete-diagramming-models/"]} {"url": "https://c4model.com/abstractions/microservices", "titulek": "Microservices | C4 model", "h1": "Microservices", "popis": "The C4 model for visualising software architecture (official website)", "klicova_slova": "", "kanonicka": "https://c4model.com/abstractions/microservices", "jazyk": "en-US", "robots_meta": "", "og": {"og:title": "Microservices", "og:locale": "en_US", "og:description": "The C4 model for visualising software architecture (official website)", "og:url": "https://c4model.com/abstractions/microservices", "og:site_name": "C4 model", "og:type": "website"}, "jsonld": [{"@context": "https://schema.org", "@type": "WebPage", "description": "The C4 model for visualising software architecture (official website)", "headline": "Microservices", "url": "https://c4model.com/abstractions/microservices"}], "drobecky": ["Abstractions", "Microservices"], "osnova": [{"uroven": 1, "text": "Microservices"}, {"uroven": 2, "text": "Stage 1 - monolithic architectural style"}, {"uroven": 2, "text": "Stage 2 - microservices architectural style"}, {"uroven": 2, "text": "Stage 3 - Conway’s Law"}, {"uroven": 2, "text": "Summary"}], "markdown": "# Microservices\n\nBroadly speaking, there are two options for diagramming microservices when using the C4 model, although it depends what you mean by “microservice”. With that in mind, let’s start from the beginning.\n\n## Stage 1 - monolithic architectural style\n\nImagine that we work for a small startup company and our task is to build a software system (named “X”) that offers business capabilities A, B, and C to our customers. Our system context diagram might look like this:\n\nArguably the quickest and cheapest way to get something delivered, especially as a young startup with a small engineering team, is to use a monolithic architecture, consisting of a single monolithic web application reading from and writing to a single monolithic database schema. The resulting container diagram looks like this:\n\n## Stage 2 - microservices architectural style\n\nA couple of years have gone by - we have some paying customers, traffic is starting to scale, we’ve hired a few more engineers, and the codebase is growing. Our monolithic architecture is starting to slow us down, so we make the decision to transition to a microservices architecture. That raises the question - what is a microservice?\n\nTo answer this question, we’ll refer to [Microservices](https://martinfowler.com/articles/microservices.html) written by James Lewis and Martin Fowler:\n\n> In short, the microservice architectural style is an approach to developing a single application as a suite of small services, each running in its own process and communicating with lightweight mechanisms, often an HTTP resource API. These services are built around business capabilities and independently deployable by fully automated deployment machinery.\n\nTo help us align this with the C4 model, let’s substitute “application” for “software system”:\n\n> In short, the microservice architectural style is an approach to developing a single **software system** as a suite of small services, each running in its own process and communicating with lightweight mechanisms, often an HTTP resource API. These services are built around business capabilities and independently deployable by fully automated deployment machinery.\n\nIn this stage of our startup’s journey, although we’ve hired a few more engineers, we’ve decided to stay as a single engineering team. Our system context diagram remains the same:\n\nBut our container diagram has changed. We’ve decided to retain the single monolithic UI of the existing web application, but move the business logic and data into individual microservices. The resulting container diagram now looks like this:\n\nAs we’re still a single engineering team, transitioning to a microservices architecture is an implementation detail that is only apparent inside the team boundary. This is why all seven containers are shown inside the software system boundary, with each “microservice” being a combination of an API container (hexagon) and a database schema container (cylinder). As a result, you will notice that this container diagram doesn’t show microservices as explicit boxes. Instead, this version of the diagram uses colour coding to show the relationship between pairs of API and database schema containers. If you wanted to be more explicit about this pairing, you could draw a box around each pair to show they are grouped together.\n\nImagine now that we are going to expand the scope of our software system to also include business capability D. The revised system context diagram would look like this:\n\nAnd if that new business capability was implemented by a new microservice, which is just a single stateless AWS lambda, the revised container diagram would look like this:\n\nTo summarise, all the microservices shown here exist within the context of a single team building a single software system. For this reason, each microservice is modelled as a group of one or more containers.\n\n## Stage 3 - Conway’s Law\n\nAs our company grows, and moves from startup to scaleup, we start looking at ways to optimise delivery, and decide to look at [Conway’s Law](https://en.wikipedia.org/wiki/Conway%27s_law) as a way to do this. In summary, we decide to split our single engineering team into a number of teams, the result of which is that each service will be owned by a separate team:\n\n- Team X: owns software system X providing the UI related to business capabilities A, B, C, and D.\n- Team A: owns service A.\n- Team B: owns service B.\n- Team C: owns service C.\n- Team D: owns service D.\n\nWe can now use the C4 model to look at each software system from the perspective of the team that owns it, with each service being “promoted” from a group of containers to a software system. The system context diagram for team X now looks like this:\n\nTeam X has only retained the monolithic UI, so the revised container diagram for software system X looks like this:\n\nAnd from the perspective of team A, the system context diagram for service A looks like this:\n\nAnd the container diagram for service A looks like this:\n\n## Summary\n\nThe approach to take for diagramming a microservices architectural style depends upon the ownership of the individual services, and whether you see them as an implementation detail inside a single software system or as separate software systems that are (or could be) owned by separate teams.", "znaku_textu": 5246, "slov": 838, "odkazu": 49, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:17:02", "sha256": "0faff3a58113aa1b9c0e168bd6f60247e336a0a6b7ceccb3bfcf4c9be1cbdf15", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://www.oreilly.com/library/view/the-c4-model/9798341660113/", "https://www.youtube.com/watch?v=x2-rSnhpw0g", "https://simonbrown.je/workshops", "https://www.patreon.com/c4model", "https://creativecommons.org/licenses/by/4.0/", "https://martinfowler.com/articles/microservices.html", "https://en.wikipedia.org/wiki/Conway's_law"]} {"url": "https://c4model.com/abstractions/queues-and-topics", "titulek": "Queues and topics | C4 model", "h1": "Queues and topics", "popis": "The C4 model for visualising software architecture (official website)", "klicova_slova": "", "kanonicka": "https://c4model.com/abstractions/queues-and-topics", "jazyk": "en-US", "robots_meta": "", "og": {"og:title": "Queues and topics", "og:locale": "en_US", "og:description": "The C4 model for visualising software architecture (official website)", "og:url": "https://c4model.com/abstractions/queues-and-topics", "og:site_name": "C4 model", "og:type": "website"}, "jsonld": [{"@context": "https://schema.org", "@type": "WebPage", "description": "The C4 model for visualising software architecture (official website)", "headline": "Queues and topics", "url": "https://c4model.com/abstractions/queues-and-topics"}], "drobecky": ["Abstractions", "Queues and topics"], "osnova": [{"uroven": 1, "text": "Queues and topics"}, {"uroven": 2, "text": "Point-to-point"}, {"uroven": 2, "text": "Pub/sub"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Further considerations"}], "markdown": "# Queues and topics\n\nImagine that we have a service-based architecture, where a number of services (A and B) produce messages, and a number of other services (C & D) consume messages. A common way to diagram such an architecture is like this:\n\nFrom some points of view, this diagram is a true and accurate representation of the architecture. Services A and B are sending messages to an intermediary, which is forwarding those messages on to services C and D. The problem is that the “hub and spoke” nature of this diagram tends to obscure the real story, where a degree of coupling may exist between the message producers and consumers.\n\n## Point-to-point\n\nThe problem here is being caused by us representing the message bus as a C4 container, which arguably isn’t correct. A better approach is to think about each separate queue and topic as being a “data store”. A message queue is essentially a **data store** - it’s a bucket for storing data (messages), with producers adding data, and consumers taking it away. The implication here is that the queues and topics are C4 containers, rather than the message bus itself.\n\nIn this example, we can clearly see there’s a coupling between services A and C via a queue named X, and there’s a similar point-to-point coupling between services B and D via a queue named Y.\n\nModelling queues and topics as C4 containers also provides a way to think about them independently of their deployment topology. At development time, you might have all queues and topics running on a single instance of a message bus to save resources on your laptop. The live deployment topology might see individual queues and topics deployed to separate message buses, brokers, or clusters for performance, scalability, or security reasons.\n\nIf you genuinely have a point-to-point coupling via a queue, you could further simplify this diagram by omitting the queues, and moving the queue names to the arrows instead.\n\nThe result is a visually simpler and less cluttered diagram, but the queues are no longer as explicitly evident on the diagram. Since the C4 model is notation independent, you could additionally use a different line style (solid vs dashed) or colour to highlight message-based relationships vs API calls, for example. Neither version of the diagrams is “better” than the other, they are just telling the same story in a different way. It’s all trade-offs.\n\n## Pub/sub\n\nYou’ll notice that all diagrams have shown messages flowing from the left of the diagram to the right, with the arrows labelled as “Sends messages to”. Although this works well, particularly for point-to-point and queue-based architectures, you can also change the arrow directions to better highlight something more pub/sub or topic-based.\n\nThis version of the diagram better shows the roles of the message publishers and subscribers. Again, it’s just a different way of telling the same story.\n\n## Summary\n\nThere are a number of ways to diagram message-based architectures, with the latter two of the following being “correct”:\n\n- Incorrect: Model the message bus as a C4 container.\n- Correct: Explicitly model queues and topics as C4 containers.\n- Correct: Implicitly model message-based interactions using a “via” notation on relationships.\n\n## Further considerations\n\nThe examples presented have assumed that a single software system is comprised from a number of services communicating via queues and topics. In other words, everything on the diagram sits “inside” the software system boundary, and is “owned” by that single software system.\n\nIf you’ve read the [microservices](/abstractions/microservices) recommendations and you’re modelling each service as a separate software system, you additionally need to consider who “owns” the queues and topics. If service A (a software system) has a point-to-point relationship with service B (also a software system) via a queue named X (a container) … who owns the container? Does service A own the definition of the message format and operation of the queue, or is it service B? Or perhaps it’s jointly owned, or owned by somebody else entirely. Ownership will impact the diagrams.", "znaku_textu": 4105, "slov": 680, "odkazu": 40, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:17:03", "sha256": "0b76f24ef17f92f16787386c0a32e3aec050855a294e898c1ce88db40df43bd9", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://www.oreilly.com/library/view/the-c4-model/9798341660113/", "https://www.youtube.com/watch?v=x2-rSnhpw0g", "https://simonbrown.je/workshops", "https://www.patreon.com/c4model", "https://creativecommons.org/licenses/by/4.0/"]} {"url": "https://c4model.com/abstractions/software-system", "titulek": "Software system | C4 model", "h1": "Software system", "popis": "The C4 model for visualising software architecture (official website)", "klicova_slova": "", "kanonicka": "https://c4model.com/abstractions/software-system", "jazyk": "en-US", "robots_meta": "", "og": {"og:title": "Software system", "og:locale": "en_US", "og:description": "The C4 model for visualising software architecture (official website)", "og:url": "https://c4model.com/abstractions/software-system", "og:site_name": "C4 model", "og:type": "website"}, "jsonld": [{"@context": "https://schema.org", "@type": "WebPage", "description": "The C4 model for visualising software architecture (official website)", "headline": "Software system", "url": "https://c4model.com/abstractions/software-system"}], "drobecky": ["Abstractions", "1. Software system"], "osnova": [{"uroven": 1, "text": "Software system"}], "markdown": "# Software system\n\nA software system is the highest level of abstraction and describes something that delivers value to its users, whether they are human or not. This includes the software system you are modelling, and the other software systems upon which your software system depends (or vice versa).\n\nUnfortunately the term “software system” is the hardest of the C4 model abstractions to define, and this isn’t helped by the fact that each organisation will also have their own terminology for describing the same thing, typically using terms such as “application”, “product”, “service”, etc. One way to think about it is that a software system is something a single software development team is building, owns, has responsibility for, and can see the internal implementation details of. Perhaps the code for that software system resides in a single source code repository, and anybody on the team is entitled to modify it. In many cases, the boundary of a software system will correspond to the boundary of a single team. It may also be the case that everything inside the boundary of a software system is deployed at the same time.\n\nThings that are not usually software systems in the C4 model include product domains, bounded contexts, business capabilities, feature teams, tribes, or squads.", "znaku_textu": 1294, "slov": 211, "odkazu": 32, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:16:58", "sha256": "fa4ad3b5b9c46d2f1c91149053d0fee0eee5004954fa323ff5e83f911f24877e", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://www.oreilly.com/library/view/the-c4-model/9798341660113/", "https://www.youtube.com/watch?v=x2-rSnhpw0g", "https://simonbrown.je/workshops", "https://www.patreon.com/c4model", "https://creativecommons.org/licenses/by/4.0/"]} {"url": "https://c4model.com/diagrams", "titulek": "Diagrams | C4 model", "h1": "Diagrams", "popis": "The C4 model for visualising software architecture (official website)", "klicova_slova": "", "kanonicka": "https://c4model.com/diagrams", "jazyk": "en-US", "robots_meta": "", "og": {"og:title": "Diagrams", "og:locale": "en_US", "og:description": "The C4 model for visualising software architecture (official website)", "og:url": "https://c4model.com/diagrams", "og:site_name": "C4 model", "og:type": "website"}, "jsonld": [{"@context": "https://schema.org", "@type": "WebPage", "description": "The C4 model for visualising software architecture (official website)", "headline": "Diagrams", "url": "https://c4model.com/diagrams"}], "drobecky": [], "osnova": [{"uroven": 1, "text": "Diagrams"}, {"uroven": 2, "text": "Static structure diagrams"}, {"uroven": 2, "text": "Supporting diagrams"}], "markdown": "# Diagrams\n\n## Static structure diagrams\n\nThe C4 model is named after the core set of static structure diagrams: (system) context, containers, components, and code.\n\nThe different levels of zoom allow you to tell different stories to different audiences. That said, **you don’t need to use all 4 levels of diagram**; only those that add value - the [system context](/diagrams/system-context) and [container](/diagrams/container) diagrams are sufficient for most software development teams.\n\n| | | | |\n| --- | --- | --- | --- |\n| [1. System context diagram](/diagrams/system-context) | [2. Container diagram](/diagrams/container) | [3. Component diagram](/diagrams/component) | [4. Code diagram](/diagrams/code) |\n\n## Supporting diagrams\n\nIn addition, there are 3 supporting diagram types:\n\n| | | |\n| --- | --- | --- |\n| [System landscape diagram](/diagrams/system-landscape) | [Dynamic diagram](/diagrams/dynamic) | [Deployment diagram](/diagrams/deployment) |", "znaku_textu": 871, "slov": 101, "odkazu": 35, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:17:05", "sha256": "4741275cee5c2b78ced67bc79554f1dad262fc0b5c444c66f47536e109c20f08", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://www.oreilly.com/library/view/the-c4-model/9798341660113/", "https://www.youtube.com/watch?v=x2-rSnhpw0g", "https://simonbrown.je/workshops", "https://www.patreon.com/c4model", "https://creativecommons.org/licenses/by/4.0/"]} {"url": "https://c4model.com/diagrams/checklist", "titulek": "Review checklist | C4 model", "h1": "Software architecture diagram review checklist", "popis": "The C4 model for visualising software architecture (official website)", "klicova_slova": "", "kanonicka": "https://c4model.com/diagrams/checklist", "jazyk": "en-US", "robots_meta": "", "og": {"og:title": "Review checklist", "og:locale": "en_US", "og:description": "The C4 model for visualising software architecture (official website)", "og:url": "https://c4model.com/diagrams/checklist", "og:site_name": "C4 model", "og:type": "website"}, "jsonld": [{"@context": "https://schema.org", "@type": "WebPage", "description": "The C4 model for visualising software architecture (official website)", "headline": "Review checklist", "url": "https://c4model.com/diagrams/checklist"}], "drobecky": ["Diagrams", "Review checklist"], "osnova": [{"uroven": 1, "text": "Software architecture diagram review checklist"}, {"uroven": 2, "text": "General"}, {"uroven": 2, "text": "Elements"}, {"uroven": 2, "text": "Relationships"}], "markdown": "# Software architecture diagram review checklist\n\n## General\n\n| Does the diagram have a title? | Yes | No |\n| --- | --- | --- |\n| Do you understand what the diagram type is? | Yes | No |\n| Do you understand what the diagram scope is? | Yes | No |\n| Does the diagram have a key/legend? | Yes | No |\n\n## Elements\n\n| Does every element have a name? | Yes | No |\n| --- | --- | --- |\n| Do you understand the type of every element? (i.e. the level of abstraction; e.g. software system, container, etc) | Yes | No |\n| Do you understand what every element does? | Yes | No |\n| Where applicable, do you understand the technology choices associated with every element? | Yes | No |\n| Do you understand the meaning of all acronyms and abbreviations used? | Yes | No |\n| Do you understand the meaning of all colours used? | Yes | No |\n| Do you understand the meaning of all shapes used? | Yes | No |\n| Do you understand the meaning of all icons used? | Yes | No |\n| Do you understand the meaning of all border styles used? (e.g. solid, dashed, etc) | Yes | No |\n| Do you understand the meaning of all element sizes used? (e.g. small vs large boxes) | Yes | No |\n\n## Relationships\n\n| Does every arrow have a label describing the intent of that relationship? | Yes | No |\n| --- | --- | --- |\n| Does the description match the relationship direction? | Yes | No |\n| Where applicable, do you understand the technology choices associated with every relationship? (e.g. protocols for inter-process communication) | Yes | No |\n| Do you understand the meaning of all acronyms and abbreviations used? | Yes | No |\n| Do you understand the meaning of all colours used? | Yes | No |\n| Do you understand the meaning of all arrow heads used? | Yes | No |\n| Do you understand the meaning of all line styles used? (e.g. solid, dashed, etc) | Yes | No |", "znaku_textu": 1628, "slov": 269, "odkazu": 35, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:17:14", "sha256": "d6feec32826afdac40b40ad1485209d07fe685f4415d0fc4e43670066faf5bf2", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://www.oreilly.com/library/view/the-c4-model/9798341660113/", "https://www.youtube.com/watch?v=x2-rSnhpw0g", "https://simonbrown.je/workshops", "https://www.patreon.com/c4model", "https://creativecommons.org/licenses/by/4.0/"]} {"url": "https://c4model.com/diagrams/code", "titulek": "Code diagram | C4 model", "h1": "Code diagram", "popis": "The C4 model for visualising software architecture (official website)", "klicova_slova": "", "kanonicka": "https://c4model.com/diagrams/code", "jazyk": "en-US", "robots_meta": "", "og": {"og:title": "Code diagram", "og:locale": "en_US", "og:description": "The C4 model for visualising software architecture (official website)", "og:url": "https://c4model.com/diagrams/code", "og:site_name": "C4 model", "og:type": "website"}, "jsonld": [{"@context": "https://schema.org", "@type": "WebPage", "description": "The C4 model for visualising software architecture (official website)", "headline": "Code diagram", "url": "https://c4model.com/diagrams/code"}], "drobecky": ["Diagrams", "4. Code diagram"], "osnova": [{"uroven": 1, "text": "Code diagram"}, {"uroven": 2, "text": "Example"}, {"uroven": 2, "text": "Scope"}, {"uroven": 2, "text": "Primary elements"}, {"uroven": 2, "text": "Intended audience"}, {"uroven": 2, "text": "Recommended?"}], "markdown": "# Code diagram\n\nFinally, you can zoom in to a component to show how it is implemented as code; using UML class diagrams, entity relationship diagrams or similar.\n\nThis is very much an optional level of detail and is often available on-demand from tooling such as IDEs. Ideally this diagram would be automatically generated using tooling (e.g. an IDE or UML modelling tool), and you should consider showing only those attributes and methods that allow you to tell the story that you want to tell. This level of detail is not recommended for anything but the most important or complex components.\n\n## Example\n\n## Scope\n\nA single component.\n\n## Primary elements\n\nCode elements (e.g. classes, interfaces, objects, functions, database tables, etc) within the component in scope.\n\n## Intended audience\n\nSoftware architects and developers.\n\n## Recommended?\n\nNo, particularly for long-lived documentation because most IDEs can generate this level of detail on demand.", "znaku_textu": 936, "slov": 147, "odkazu": 38, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:17:09", "sha256": "5c8ea540e73c3f35995b9943108d5ba08a12d1280776f2baa3fbfaf10816ab42", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://www.oreilly.com/library/view/the-c4-model/9798341660113/", "https://www.youtube.com/watch?v=x2-rSnhpw0g", "https://simonbrown.je/workshops", "https://www.patreon.com/c4model", "https://creativecommons.org/licenses/by/4.0/"]} {"url": "https://c4model.com/diagrams/component", "titulek": "Component diagram | C4 model", "h1": "Component diagram", "popis": "The C4 model for visualising software architecture (official website)", "klicova_slova": "", "kanonicka": "https://c4model.com/diagrams/component", "jazyk": "en-US", "robots_meta": "", "og": {"og:title": "Component diagram", "og:locale": "en_US", "og:description": "The C4 model for visualising software architecture (official website)", "og:url": "https://c4model.com/diagrams/component", "og:site_name": "C4 model", "og:type": "website"}, "jsonld": [{"@context": "https://schema.org", "@type": "WebPage", "description": "The C4 model for visualising software architecture (official website)", "headline": "Component diagram", "url": "https://c4model.com/diagrams/component"}], "drobecky": ["Diagrams", "3. Component diagram"], "osnova": [{"uroven": 1, "text": "Component diagram"}, {"uroven": 2, "text": "Example"}, {"uroven": 3, "text": "Diagram key"}, {"uroven": 2, "text": "Scope"}, {"uroven": 2, "text": "Primary elements"}, {"uroven": 2, "text": "Supporting elements"}, {"uroven": 2, "text": "Intended audience"}, {"uroven": 2, "text": "Recommended?"}], "markdown": "# Component diagram\n\nNext you can zoom in and decompose a container to describe the [components](/abstractions/component) that reside inside it; including their responsibilities and the technology/implementation details.\n\n## Example\n\n### Diagram key\n\n## Scope\n\nA single container.\n\n## Primary elements\n\nComponents within the container in scope.\n\n## Supporting elements\n\nContainers (within the software system in scope) plus people and software systems directly connected to the components.\n\n## Intended audience\n\nSoftware architects and developers.\n\n## Recommended?\n\nNo, only create component diagrams if you feel they add value, and consider automating their creation for long-lived documentation.", "znaku_textu": 668, "slov": 87, "odkazu": 41, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:17:08", "sha256": "cfa3bd9c012013bf38b4f27011631ae2006ff091c84f58e0173abef99eae1a0d", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://www.oreilly.com/library/view/the-c4-model/9798341660113/", "https://www.youtube.com/watch?v=x2-rSnhpw0g", "https://simonbrown.je/workshops", "https://www.patreon.com/c4model", "https://creativecommons.org/licenses/by/4.0/"]} {"url": "https://c4model.com/diagrams/container", "titulek": "Container diagram | C4 model", "h1": "Container diagram", "popis": "The C4 model for visualising software architecture (official website)", "klicova_slova": "", "kanonicka": "https://c4model.com/diagrams/container", "jazyk": "en-US", "robots_meta": "", "og": {"og:title": "Container diagram", "og:locale": "en_US", "og:description": "The C4 model for visualising software architecture (official website)", "og:url": "https://c4model.com/diagrams/container", "og:site_name": "C4 model", "og:type": "website"}, "jsonld": [{"@context": "https://schema.org", "@type": "WebPage", "description": "The C4 model for visualising software architecture (official website)", "headline": "Container diagram", "url": "https://c4model.com/diagrams/container"}], "drobecky": ["Diagrams", "2. Container diagram"], "osnova": [{"uroven": 1, "text": "Container diagram"}, {"uroven": 2, "text": "Example"}, {"uroven": 3, "text": "Diagram key"}, {"uroven": 2, "text": "Scope"}, {"uroven": 2, "text": "Primary elements"}, {"uroven": 2, "text": "Supporting elements"}, {"uroven": 2, "text": "Intended audience"}, {"uroven": 2, "text": "Recommended?"}, {"uroven": 2, "text": "Notes"}], "markdown": "# Container diagram\n\nOnce you understand how your system fits in to the overall IT environment, a useful next step is to zoom in to the system boundary with a container diagram. In C4, a [container](/abstractions/container) is an application or a data store. For example, a server-side web application, a client-side single-page application, a desktop application, a mobile app, a database schema, a folder on a file system, an Amazon Web Services S3 bucket, etc.\n\nThe container diagram shows the high-level shape of the software architecture and how responsibilities are distributed across it. It also shows the major technology choices and how the containers communicate with one another. It’s a simple, high-level technology focussed diagram that is useful for software developers and support/operations staff alike.\n\n## Example\n\n### Diagram key\n\n## Scope\n\nA single software system.\n\n## Primary elements\n\nContainers within the software system in scope.\n\n## Supporting elements\n\nPeople and software systems directly connected to the containers.\n\n## Intended audience\n\nTechnical people inside and outside the software development team; including software architects, developers and operations/support staff.\n\n## Recommended?\n\nYes, a container diagram is recommended for all software development teams.\n\n## Notes\n\nThis diagram says very little about deployment aspects such as clustering, load balancers, replication, failover, etc because it will likely vary across different environments (e.g. production, staging, development, etc). Deployment information is better captured via one or more [deployment diagrams](/diagrams/deployment), one per environment.", "znaku_textu": 1624, "slov": 231, "odkazu": 42, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:17:07", "sha256": "3d34824b5c7aa794afc659e4dfb6a3b5df4ab4b6bce2273fe098066209e5ae14", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://www.oreilly.com/library/view/the-c4-model/9798341660113/", "https://www.youtube.com/watch?v=x2-rSnhpw0g", "https://simonbrown.je/workshops", "https://www.patreon.com/c4model", "https://creativecommons.org/licenses/by/4.0/"]} {"url": "https://c4model.com/diagrams/deployment", "titulek": "Deployment diagram | C4 model", "h1": "Deployment diagram", "popis": "The C4 model for visualising software architecture (official website)", "klicova_slova": "", "kanonicka": "https://c4model.com/diagrams/deployment", "jazyk": "en-US", "robots_meta": "", "og": {"og:title": "Deployment diagram", "og:locale": "en_US", "og:description": "The C4 model for visualising software architecture (official website)", "og:url": "https://c4model.com/diagrams/deployment", "og:site_name": "C4 model", "og:type": "website"}, "jsonld": [{"@context": "https://schema.org", "@type": "WebPage", "description": "The C4 model for visualising software architecture (official website)", "headline": "Deployment diagram", "url": "https://c4model.com/diagrams/deployment"}], "drobecky": ["Diagrams", "Deployment diagram"], "osnova": [{"uroven": 1, "text": "Deployment diagram"}, {"uroven": 2, "text": "Example 1"}, {"uroven": 3, "text": "Diagram key"}, {"uroven": 2, "text": "Example 2"}, {"uroven": 3, "text": "Diagram key"}, {"uroven": 2, "text": "Example 3"}, {"uroven": 3, "text": "Diagram key"}, {"uroven": 2, "text": "Scope"}, {"uroven": 2, "text": "Primary and supporting elements"}, {"uroven": 2, "text": "Supporting elements"}, {"uroven": 2, "text": "Intended audience"}, {"uroven": 2, "text": "Recommended?"}], "markdown": "# Deployment diagram\n\nA deployment diagram allows you to illustrate how instances of software systems and/or containers in the static model are deployed on to the infrastructure within a given **deployment environment** (e.g. production, staging, development, etc). It’s based upon a [UML deployment diagram](https://en.wikipedia.org/wiki/Deployment_diagram).\n\nA **deployment node** represents where an instance of a software system/container is running; perhaps physical infrastructure (e.g. a physical server or device), virtualised infrastructure (e.g. IaaS, PaaS, a virtual machine), containerised infrastructure (e.g. a Docker container), an execution environment (e.g. a database server, Java EE web/application server, Microsoft IIS), etc. Deployment nodes can be nested.\n\nYou may also want to include **infrastructure nodes** such as DNS services, load balancers, firewalls, etc.\n\nFeel free to use icons provided by Amazon Web Services, Azure, etc to complement your deployment diagrams … just make sure any icons you use are included in your diagram key/legend.\n\n## Example 1\n\n### Diagram key\n\n## Example 2\n\n### Diagram key\n\n## Example 3\n\n### Diagram key\n\n## Scope\n\nOne or more software systems within a single deployment environment (e.g. production, staging, development, etc).\n\n## Primary and supporting elements\n\nDeployment nodes, software system instances, and container instances.\n\n## Supporting elements\n\nInfrastructure nodes used in the deployment of the software system.\n\n## Intended audience\n\nTechnical people inside and outside of the software development team; including software architects, developers, infrastructure architects, and operations/support staff.\n\n## Recommended?\n\nYes.", "znaku_textu": 1645, "slov": 220, "odkazu": 50, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:17:12", "sha256": "b04cc1b5f4fdbec249d83ea321bffdb1efa2d76cb7831b23f67c42afd9b2edf6", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://www.oreilly.com/library/view/the-c4-model/9798341660113/", "https://www.youtube.com/watch?v=x2-rSnhpw0g", "https://simonbrown.je/workshops", "https://www.patreon.com/c4model", "https://creativecommons.org/licenses/by/4.0/", "https://en.wikipedia.org/wiki/Deployment_diagram"]} {"url": "https://c4model.com/diagrams/dynamic", "titulek": "Dynamic diagram | C4 model", "h1": "Dynamic diagram", "popis": "The C4 model for visualising software architecture (official website)", "klicova_slova": "", "kanonicka": "https://c4model.com/diagrams/dynamic", "jazyk": "en-US", "robots_meta": "", "og": {"og:title": "Dynamic diagram", "og:locale": "en_US", "og:description": "The C4 model for visualising software architecture (official website)", "og:url": "https://c4model.com/diagrams/dynamic", "og:site_name": "C4 model", "og:type": "website"}, "jsonld": [{"@context": "https://schema.org", "@type": "WebPage", "description": "The C4 model for visualising software architecture (official website)", "headline": "Dynamic diagram", "url": "https://c4model.com/diagrams/dynamic"}], "drobecky": ["Diagrams", "Dynamic diagram"], "osnova": [{"uroven": 1, "text": "Dynamic diagram"}, {"uroven": 2, "text": "Example (collaboration style)"}, {"uroven": 3, "text": "Diagram key"}, {"uroven": 2, "text": "Example (sequence style)"}, {"uroven": 2, "text": "Scope"}, {"uroven": 2, "text": "Primary and supporting elements"}, {"uroven": 2, "text": "Intended audience"}, {"uroven": 2, "text": "Recommended?"}, {"uroven": 2, "text": "Notes"}], "markdown": "# Dynamic diagram\n\nA dynamic diagram can be useful when you want to show how elements in the static model collaborate at runtime to implement a user story, use case, feature, etc. This dynamic diagram is based upon a [UML communication diagram](https://en.wikipedia.org/wiki/Communication_diagram) (previously known as a “UML collaboration diagram”). It is similar to a [UML sequence diagram](https://en.wikipedia.org/wiki/Sequence_diagram) although it allows a free-form arrangement of diagram elements with numbered interactions to indicate ordering.\n\n## Example (collaboration style)\n\n### Diagram key\n\n## Example (sequence style)\n\n## Scope\n\nA particular feature, story, use case, etc.\n\n## Primary and supporting elements\n\nYour choice - you can show software systems, containers, or components interacting at runtime.\n\n## Intended audience\n\nTechnical and non-technical people, inside and outside the software development team.\n\n## Recommended?\n\nNo, dynamic diagrams should be used sparingly to show interesting/recurring patterns or features that require a complicated set of interactions.\n\n## Notes\n\nThe collaboration and sequence styles show the same information in a different way, so feel free to use whichever you prefer.", "znaku_textu": 1193, "slov": 162, "odkazu": 45, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:17:11", "sha256": "cf0e4c3b8bac15eff22d27c0790481703fbc4d291cefb192943360437bdb35d1", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://www.oreilly.com/library/view/the-c4-model/9798341660113/", "https://www.youtube.com/watch?v=x2-rSnhpw0g", "https://simonbrown.je/workshops", "https://www.patreon.com/c4model", "https://creativecommons.org/licenses/by/4.0/", "https://en.wikipedia.org/wiki/Communication_diagram", "https://en.wikipedia.org/wiki/Sequence_diagram"]} {"url": "https://c4model.com/diagrams/faq", "titulek": "FAQ | C4 model", "h1": "Frequently asked questions", "popis": "The C4 model for visualising software architecture (official website)", "klicova_slova": "", "kanonicka": "https://c4model.com/diagrams/faq", "jazyk": "en-US", "robots_meta": "", "og": {"og:title": "FAQ", "og:locale": "en_US", "og:description": "The C4 model for visualising software architecture (official website)", "og:url": "https://c4model.com/diagrams/faq", "og:site_name": "C4 model", "og:type": "website"}, "jsonld": [{"@context": "https://schema.org", "@type": "WebPage", "description": "The C4 model for visualising software architecture (official website)", "headline": "FAQ", "url": "https://c4model.com/diagrams/faq"}], "drobecky": ["Diagrams", "FAQ"], "osnova": [{"uroven": 1, "text": "Frequently asked questions"}, {"uroven": 2, "text": "Should the lines represent dependencies or data flow?"}, {"uroven": 2, "text": "Will the diagrams become outdated quickly?"}], "markdown": "# Frequently asked questions\n\n## Should the lines represent dependencies or data flow?\n\nThis is your choice. Sometimes diagrams work better showing dependency relationships (e.g. uses, reads from, etc), and sometimes data flow (e.g. customer update events) works better. Whichever you choose, make sure that the description of the line matches the direction of the arrow.\n\nIt’s also worth remembering that most relationships can be expressed either way, and the more explicit you can be, the better. For example, describing a relationship as “sends customer update events to” can be more descriptive than simply “customer update events”.\n\n## Will the diagrams become outdated quickly?\n\nDue to the hierarchical nature of the C4 model, each diagram will change at a different rate.\n\n- **System context diagram** : In most cases, the system context diagram will change very slowly, as this describes the landscape that the software system is operating within.\n- **Container diagram** : Unless you’re building a software system that makes heavy use of microservices or serverless lambdas/functions/etc, the container diagram will also change relatively slowly.\n- **Component diagram** : For any software system under active development, the component diagrams may change frequently as the team adds, removes or restructures the code into cohesive components.\n- **Code diagram** : The level 4 code (e.g. class) diagrams will potentially become outdated very quickly if the codebase is under active development. For this reason, the recommendation is to (1) not create them at all or (2) generate them on-demand using tooling such as your IDE.\n\nOf course, the above only applies when you are creating your C4 diagrams by hand. Automatically generating your diagrams will ensure they are kept up to date and reflect reality at all times. Possible approaches to do this include:\n\n- **System landscape/context diagrams** : Using existing system/service catalogs (e.g. Backstage, ServiceNow, etc) as a source of data for identifying software systems and relationships.\n- **Container diagrams** : Parsing log files or using OpenTelemetry data as a source of data for identifying microservices and relationships.\n- **Component diagrams** : Static analysis/reverse-engineering of code as a source of data for identifying components and their relationships.\n- **Deployment diagrams** : Parsing “infrastructure as code” definitions (e.g. Terraform, CloudFormation, etc) or reverse-engineering cloud environment configuration as a source of data for identifying deployment elements.", "znaku_textu": 2512, "slov": 375, "odkazu": 34, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:17:15", "sha256": "7bafb73711c791b856361a8f400f52f048288dddedcb810de068293d7f0703e9", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://www.oreilly.com/library/view/the-c4-model/9798341660113/", "https://www.youtube.com/watch?v=x2-rSnhpw0g", "https://simonbrown.je/workshops", "https://www.patreon.com/c4model", "https://creativecommons.org/licenses/by/4.0/"]} {"url": "https://c4model.com/diagrams/notation", "titulek": "Notation | C4 model", "h1": "Notation", "popis": "The C4 model for visualising software architecture (official website)", "klicova_slova": "", "kanonicka": "https://c4model.com/diagrams/notation", "jazyk": "en-US", "robots_meta": "", "og": {"og:title": "Notation", "og:locale": "en_US", "og:description": "The C4 model for visualising software architecture (official website)", "og:url": "https://c4model.com/diagrams/notation", "og:site_name": "C4 model", "og:type": "website"}, "jsonld": [{"@context": "https://schema.org", "@type": "WebPage", "description": "The C4 model for visualising software architecture (official website)", "headline": "Notation", "url": "https://c4model.com/diagrams/notation"}], "drobecky": ["Diagrams", "Notation"], "osnova": [{"uroven": 1, "text": "Notation"}, {"uroven": 3, "text": "Diagrams"}, {"uroven": 3, "text": "Elements"}, {"uroven": 3, "text": "Relationships"}, {"uroven": 3, "text": "Colours"}, {"uroven": 2, "text": "Diagram key/legend"}, {"uroven": 2, "text": "C4 and UML"}, {"uroven": 2, "text": "C4 and ArchiMate"}, {"uroven": 2, "text": "Alternative visualisations"}], "markdown": "# Notation\n\nThe C4 model is **notation independent**, and doesn’t prescribe any particular notation. That said, you still need to ensure that your diagram notation makes sense, and that the diagrams are comprehensible. A good way to think about this is to ask yourself whether each diagram can stand alone, and be (mostly) understood without a narrative. You can use this short [software architecture diagram review checklist](/diagrams/checklist) to help.\n\nHere are some general recommendations related to notation.\n\n### Diagrams\n\n- Every diagram should have a title describing the diagram type and scope (e.g. “System Context diagram for My Software System”).\n- Every diagram should have a key/legend explaining the notation being used (e.g. shapes, colours, border styles, line types, arrow heads, etc).\n- Acronyms and abbreviations (business/domain or technology) should be understandable by all audiences, or explained in the diagram key/legend.\n\n### Elements\n\n- The type of every element should be explicitly specified (e.g. Person, Software System, Container or Component).\n- Every element should have a short description, to provide an “at a glance” view of key responsibilities.\n- Every container and component should have a technology explicitly specified.\n\n### Relationships\n\n- Every line should represent a unidirectional relationship.\n- Every line should be labelled, the label being consistent with the direction and intent of the relationship (e.g. dependency or data flow). Try to be as specific as possible with the label, ideally avoiding single words like, “Uses”.\n- Relationships between containers (typically these represent inter-process communication) should have a technology/protocol explicitly labelled.\n\n### Colours\n\nAlthough you may see many example diagrams and tools that make use of blue and grey boxes, this **isn’t** something that is dictated by the C4 model, and you are free to use whatever colours you like! Just make sure that any colour coding is consistent (within and across diagrams) and be careful of things like black and white printers, color blindness, etc.\n\n| | | |\n| --- | --- | --- |\n\n## Diagram key/legend\n\nAny notation used should be as self-describing as possible, but all diagrams should have a key/legend to make the notation explicit. This applies to diagrams created with notations such as UML, ArchiMate and SysML too, as not everybody will know the notation being used.\n\n## C4 and UML\n\nAlthough the example diagrams are created using a “boxes and lines” notation, the core diagrams can be illustrated using UML with the appropriate use of packages, components and stereotypes. The resulting UML diagrams do tend to lack the same degree of descriptive text though, because adding such text isn’t possible (or easy) with some UML tools.\n\nHere are three examples of a system context, container and component diagram for comparison.\n\n| System context diagram | Container diagram | Component diagram |\n| --- | --- | --- |\n| | | |\n| | | |\n| | | |\n\n## C4 and ArchiMate\n\nSee [C4 Model, Architecture Viewpoint and Archi 4.7](https://www.archimatetool.com/blog/2020/04/18/c4-model-architecture-viewpoint-and-archi-4-7/) for details of how to create C4 model diagrams with ArchiMate.\n\n## Alternative visualisations\n\nFinally, don’t feel that you need to always use a traditional “boxes and arrows” diagram. Although this is usually the default approach, there are other, often interactive, visualisations that can be used to show the same C4 model abstractions in very different ways.\n\n| | | |\n| --- | --- | --- |\n| Traditional “boxes and arrows” diagrams are the default approach for documentation and presentations. | A D3.js force-directed graph is a very concise way to visualise larger software architectures, also providing an easy way to explore dependencies. | Ilograph’s interactive diagrams provide a way to selectively zoom in and out, allowing you to explore your entire software architecture model. |", "znaku_textu": 3802, "slov": 564, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:17:13", "sha256": "09d636316f7ed85b756e18cc22abd087deb5b0f6c62c3b8f2162de46fd6f9bad", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://www.oreilly.com/library/view/the-c4-model/9798341660113/", "https://www.youtube.com/watch?v=x2-rSnhpw0g", "https://simonbrown.je/workshops", "https://www.patreon.com/c4model", "https://creativecommons.org/licenses/by/4.0/", "https://www.archimatetool.com/blog/2020/04/18/c4-model-architecture-viewpoint-and-archi-4-7/", "https://structurizr.com/dsl?example=microservices", "https://structurizr.com/dsl?example=microservices&renderer=graph", "https://structurizr.com/dsl?example=microservices&renderer=ilograph"]} {"url": "https://c4model.com/diagrams/system-context", "titulek": "System context diagram | C4 model", "h1": "System context diagram", "popis": "The C4 model for visualising software architecture (official website)", "klicova_slova": "", "kanonicka": "https://c4model.com/diagrams/system-context", "jazyk": "en-US", "robots_meta": "", "og": {"og:title": "System context diagram", "og:locale": "en_US", "og:description": "The C4 model for visualising software architecture (official website)", "og:url": "https://c4model.com/diagrams/system-context", "og:site_name": "C4 model", "og:type": "website"}, "jsonld": [{"@context": "https://schema.org", "@type": "WebPage", "description": "The C4 model for visualising software architecture (official website)", "headline": "System context diagram", "url": "https://c4model.com/diagrams/system-context"}], "drobecky": ["Diagrams", "1. System context diagram"], "osnova": [{"uroven": 1, "text": "System context diagram"}, {"uroven": 2, "text": "Example"}, {"uroven": 3, "text": "Diagram key"}, {"uroven": 2, "text": "Scope"}, {"uroven": 2, "text": "Primary elements"}, {"uroven": 2, "text": "Supporting elements"}, {"uroven": 2, "text": "Intended audience"}, {"uroven": 2, "text": "Recommended?"}], "markdown": "# System context diagram\n\nA system context diagram is a good starting point for diagramming and documenting a software system, allowing you to step back and see the big picture. Draw a diagram showing your system as a box in the centre, surrounded by its users and the other systems that it interacts with.\n\nDetail isn’t important here as this is your zoomed out view showing a big picture of the system landscape. The focus should be on people (actors, roles, personas, etc) and software systems rather than technologies, protocols and other low-level details. It’s the sort of diagram that you could show to non-technical people.\n\n## Example\n\n### Diagram key\n\n## Scope\n\nA single software system.\n\n## Primary elements\n\nThe software system in scope.\n\n## Supporting elements\n\nPeople (e.g. users, actors, roles, or personas) and software systems (external dependencies) that are directly connected to the software system in scope. Typically these other software systems sit outside the scope or boundary of your own software system, and you don’t have responsibility or ownership of them.\n\n## Intended audience\n\nEverybody, both technical and non-technical people, inside and outside the software development team.\n\n## Recommended?\n\nYes, a system context diagram is recommended for all software development teams.", "znaku_textu": 1279, "slov": 200, "odkazu": 41, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:17:06", "sha256": "d4f3154adcb17b557c921bc3d030d4ae56e8b8e0e600df8bfc35836f890f0ef0", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://www.oreilly.com/library/view/the-c4-model/9798341660113/", "https://www.youtube.com/watch?v=x2-rSnhpw0g", "https://simonbrown.je/workshops", "https://www.patreon.com/c4model", "https://creativecommons.org/licenses/by/4.0/"]} {"url": "https://c4model.com/diagrams/system-landscape", "titulek": "System landscape diagram | C4 model", "h1": "System landscape diagram", "popis": "The C4 model for visualising software architecture (official website)", "klicova_slova": "", "kanonicka": "https://c4model.com/diagrams/system-landscape", "jazyk": "en-US", "robots_meta": "", "og": {"og:title": "System landscape diagram", "og:locale": "en_US", "og:description": "The C4 model for visualising software architecture (official website)", "og:url": "https://c4model.com/diagrams/system-landscape", "og:site_name": "C4 model", "og:type": "website"}, "jsonld": [{"@context": "https://schema.org", "@type": "WebPage", "description": "The C4 model for visualising software architecture (official website)", "headline": "System landscape diagram", "url": "https://c4model.com/diagrams/system-landscape"}], "drobecky": ["Diagrams", "System landscape diagram"], "osnova": [{"uroven": 1, "text": "System landscape diagram"}, {"uroven": 2, "text": "Example"}, {"uroven": 3, "text": "Diagram key"}, {"uroven": 2, "text": "Scope"}, {"uroven": 2, "text": "Primary elements"}, {"uroven": 2, "text": "Intended audience"}, {"uroven": 2, "text": "Recommended?"}], "markdown": "# System landscape diagram\n\nThe system context, container, component, and code diagrams are designed to provide a static view of a **single software system** but, in the real-world, software systems never live in isolation. For this reason, and particularly if you are responsible for a collection/portfolio of software systems, it’s often useful to understand how all of these software systems fit together within a given enterprise, organisation, department, etc. Essentially this is a map of the software systems within the chosen scope, with a set of system context, container, component, and code diagrams for each software system of interest.\n\nFrom a practical perspective, a system landscape diagram is really just a system context diagram without a specific focus on a particular software system.\n\n## Example\n\n### Diagram key\n\n## Scope\n\nAn enterprise/organisation/department/etc.\n\n## Primary elements\n\nPeople and software systems related to the chosen scope.\n\n## Intended audience\n\nTechnical and non-technical people, inside and outside the software development team.\n\n## Recommended?\n\nYes, particularly for larger organisations - it’s a bridge into the enterprise architecture world.", "znaku_textu": 1159, "slov": 168, "odkazu": 40, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:17:10", "sha256": "bc1f63fb89d8f22be1da60e7868845548591e0616f4a811fdc72310559f5bbe8", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://www.oreilly.com/library/view/the-c4-model/9798341660113/", "https://www.youtube.com/watch?v=x2-rSnhpw0g", "https://simonbrown.je/workshops", "https://www.patreon.com/c4model", "https://creativecommons.org/licenses/by/4.0/"]} {"url": "https://c4model.com/example", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "utf-8", "kodovani_deklarovane": null, "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:17:18", "sha256": "dbe5228eda142ab7b101ae6ffff48d9fcced73a17b0245a020f52dfd6a360d21", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": []} {"url": "https://c4model.com/faq", "titulek": "FAQ | C4 model", "h1": "Frequently asked questions", "popis": "The C4 model for visualising software architecture (official website)", "klicova_slova": "", "kanonicka": "https://c4model.com/faq", "jazyk": "en-US", "robots_meta": "", "og": {"og:title": "FAQ", "og:locale": "en_US", "og:description": "The C4 model for visualising software architecture (official website)", "og:url": "https://c4model.com/faq", "og:site_name": "C4 model", "og:type": "website"}, "jsonld": [{"@context": "https://schema.org", "@type": "WebPage", "description": "The C4 model for visualising software architecture (official website)", "headline": "FAQ", "url": "https://c4model.com/faq"}], "drobecky": [], "osnova": [{"uroven": 1, "text": "Frequently asked questions"}, {"uroven": 2, "text": "What’s the background behind the C4 model?"}, {"uroven": 2, "text": "What’s the inspiration behind the C4 model?"}, {"uroven": 2, "text": "Who is using C4?"}, {"uroven": 2, "text": "Isn’t the C4 model a step backwards? Why are you reinventing UML? Why not just use UML?"}, {"uroven": 2, "text": "The C4 model vs UML, ArchiMate and SysML?"}, {"uroven": 2, "text": "Why doesn’t the C4 model cover business processes, workflows, state machines, domain models, data models, etc?"}, {"uroven": 2, "text": "Can we combine C4 and arc42?"}, {"uroven": 2, "text": "Does the C4 model imply a design process or team structure?"}, {"uroven": 2, "text": "Using C4 to describe libraries, frameworks and SDKs?"}, {"uroven": 2, "text": "Is the C4 model universally applicable?"}, {"uroven": 2, "text": "Does the C4 model scale?"}], "markdown": "# Frequently asked questions\n\n## What’s the background behind the C4 model?\n\nThe C4 model was created by [Simon Brown](http://simonbrown.je), who started teaching software architecture, while working as a software developer/architect. Part of Simon’s training course was a design exercise, where groups of people were given some requirements, asked to do some design, and to draw some diagrams to express that design.\n\nAlthough this was a design focussed exercise, the wide variety of diagrams made it evident that the visualisation of ideas was a skill that most people sorely lacked. The C4 model is essentially a formalisation of how Simon used to visualise software architecture, which has evolved over the years.\n\nExact dates are hard to pin down, but the roots of the C4 model can be traced back to somewhere in the region of 2006-2009, the diagram types (“context”, “containers”, “components”, “classes”) were named in early 2010, with the “C4” name being first used in early 2011. The fourth diagram type was renamed from “classes” to “code” during 2015-2016.\n\n## What’s the inspiration behind the C4 model?\n\nThe C4 model was created during a time where teams, influenced by the agile movement, were less than enthusiastic about using the [Unified Modeling Language](https://en.wikipedia.org/wiki/Unified_Modeling_Language) (UML) to document software architecture, if they were creating diagrams at all. Despite this, the C4 model was inspired by UML and the [4+1 model for software architecture](https://en.wikipedia.org/wiki/4%2B1_architectural_view_model). In summary, you can think of the C4 model as a simplified version of the underlying concepts, designed to (1) make it easier for software developers to describe and understand how a software system works and (2) to minimise the gap between the software architecture model/description and the source code.\n\n## Who is using C4?\n\nSimon has personally taught the C4 model to 10,000+ people in ~40 countries; with conference talks, videos, books, and articles reaching many more than this. Other people are also teaching, speaking, and writing about the C4 model, plus it’s been integrated into a number of tools. Here are some case studies:\n\n- Spotify: [Spotify Engineering: Software Visualization - Challenge, Accepted](https://engineering.atspotify.com/2022/07/software-visualization-challenge-accepted/)\n- Decathlon: [Navigating Software Architecture at Scale: Insights from Decathlon’s Architecture Process](https://www.infoq.com/news/2024/07/decathlon-architecture-process/)\n- Co-op: [LinkedIn post](https://www.linkedin.com/posts/popovdenys_diagramming-platforms-architecture-activity-7220039863813763073-1XQ3/)\n\nAnd here are some other resources that reference the C4 model:\n\n- [Wikipedia](https://en.wikipedia.org/wiki/C4_model)\n- [InfoQ: The C4 model for software architecture](https://www.infoq.com/articles/C4-architecture-model)\n- [InfoQ: O modelo C4 de documentação para Arquitetura de Software](https://www.infoq.com/br/articles/C4-architecture-model)\n- [InfoQ: 用于软件架构的C4模型](https://www.infoq.com/cn/articles/C4-architecture-model)\n- [InfoQ: ソフトウェアアーキテクチャのためのC4モデル](https://www.infoq.com/jp/articles/C4-architecture-model)\n- [Open Agile Architecture™, a Standard of The Open Group](https://publications.opengroup.org/c208)\n- [Agile Architecture Modeling using the ArchiMate® Language](https://publications.opengroup.org/g20e)\n- [Martin Fowler: Building Infrastructure Platforms - Communicate your technical vision](https://martinfowler.com/articles/building-infrastructure-platform.html#CommunicateYourTechnicalVision) (Poppy Rowse and Chris Shepherd)\n\n## Isn’t the C4 model a step backwards? Why are you reinventing UML? Why not just use UML?\n\nWhether you see the C4 model as a step forwards or a step backwards depends upon where you are. If you’re using UML (or SysML, ArchiMate, etc) and it’s working for you, stick with it. Unfortunately, UML usage seems to be in decline, and many teams have reverted to using ad hoc boxes and lines diagrams once again. Given that many of those teams don’t want to use UML (for various reasons), the C4 model helps introduce some structure and discipline into the way software architecture is communicated. For many teams, the C4 model is sufficient. And for others, perhaps it’s a stepping stone to UML.\n\n## The C4 model vs UML, ArchiMate and SysML?\n\nAlthough existing notations such as UML, ArchiMate and SysML already exist, many software development teams don’t seem to use them. Often this is because teams don’t know these notations well enough, perceive them to be too complicated, think they are not compatible with agile approaches or don’t have the required tooling.\n\nIf you are already successfully using one of these notations to communicate software architecture, and it’s working, stick with it. If not, try the C4 model. And don’t be afraid to supplement the C4 diagrams with UML state diagrams, timing diagrams, etc if you need to.\n\n## Why doesn’t the C4 model cover business processes, workflows, state machines, domain models, data models, etc?\n\nThe focus of the C4 model is the static structures that make up a software system, at different levels of abstraction. If you need to describe other aspects, feel free to supplement the C4 diagrams with UML diagrams, BPML diagrams, ArchiMate diagrams, entity relationship diagrams, etc.\n\n## Can we combine C4 and arc42?\n\nYes, many teams do, and the C4 model is compatible with the [arc42 documentation template](http://arc42.org) as follows.\n\n- Context and Scope => System Context diagram\n- Building Block View (level 1) => Container diagram\n- Building Block View (level 2) => Component diagram\n- Building Block View (level 3) => Code (e.g. class) diagram\n\n## Does the C4 model imply a design process or team structure?\n\nA common misconception is that a team’s design process should follow the levels in the C4 model hierarchy, perhaps with different people on the team being responsible for different levels of diagrams. For example, a business analyst creates the system context diagram, the architect creates the container diagram, while the developers look after the remaining levels of detail.\n\nAlthough you can certainly use the C4 model in this way, this is not the intended or recommended usage pattern. The C4 model is just a way to describe a software system, from different levels of abstraction, and it implies nothing about the process of delivering software.\n\n## Using C4 to describe libraries, frameworks and SDKs?\n\nThe C4 model is really designed to model a software system, at various levels of abstraction. To document a library, framework or SDK, you might be better off using something like UML. Alternatively, you could use the C4 model to describe a usage example of your framework, library or SDK; perhaps using colour coding to signify which parts of the software system are bespoke vs those provided for you.\n\n## Is the C4 model universally applicable?\n\nThe C4 model was designed to help describe, document, and diagram custom-built, bespoke software systems. From this perspective, the C4 model can be used to describe a variety of software architectures (monolithic or distributed), built in a variety of programming languages, deployed on a variety of platforms (on-premises or cloud).\n\nSolutions that are perhaps less suited to the C4 model include embedded systems/firmware, and solutions that rely on heavy customization rather than bespoke development (e.g. SAP and Salesforce). Even with these solutions, you still may find the System Context and Container diagrams useful.\n\n## Does the C4 model scale?\n\nThe example diagrams conveniently consist of a small number of boxes and arrows, but you might be asking how the C4 model can be used with real-world software systems, where you have 600 components rather than 6. The answer is that the tooling you choose can either help or hinder you.\n\nEven with a relatively small software system, it’s tempting to try and include the entire story on a single diagram. For example, if you have a web application, it seems logical to create a single component diagram that shows all the components that make up that web application. Unless your software system really is that small, you’re likely to run out of room on the diagram canvas or find it difficult to discover a layout that isn’t cluttered by a myriad of overlapping lines. Using a larger diagram canvas can sometimes help, but large diagrams are usually hard to interpret and comprehend because the cognitive load is too high. And if nobody understands the diagram, nobody is going to look at it.\n\nInstead, don’t be afraid to split that single complex diagram into a larger number of simpler diagrams, each with a specific focus around a business area, functional area, functional grouping, bounded context, use case, user interaction, feature set, etc. The key is to ensure that each of the separate diagrams tells a different part of the same overall story, at the same level of abstraction.\n\nHere’s an example of a container diagram showing a software system comprised of a number of microservices:\n\nThis diagram works at the moment, but will quickly become cluttered as we add more services. As an alternative approach, rather than creating a single diagram showing 8 services, we could create 8 diagrams that each focus on a single service, showing the nearest afferent (inbound) and efferent (outbound) dependencies:\n\n| | | |\n| --- | --- | --- |\n| Service 1 | Service 2 | Service 3 |\n\nThis is difficult to do with a diagramming tool, but trivial with a modelling tool - see [Diagramming vs modelling](/tooling#diagramming-vs-modelling) for more details. The trade-off here is that we lose the “big picture”. So another option is to create some alternative visualisations that are not as verbose as the traditional “boxes and lines” diagrams. Again, this is relatively straightforward when you use a modelling tool, and think about the software architecture model as being a data structure that you can visualise in different ways.\n\n| | |\n| --- | --- |", "znaku_textu": 9935, "slov": 1485, "odkazu": 65, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:17:17", "sha256": "94ac7f898e24959a71245ce1a01e0710e76ef6e9a3fb2cecca1b37861a2b80b4", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://www.oreilly.com/library/view/the-c4-model/9798341660113/", "https://www.youtube.com/watch?v=x2-rSnhpw0g", "https://simonbrown.je/workshops", "https://www.patreon.com/c4model", "https://creativecommons.org/licenses/by/4.0/", "http://simonbrown.je/", "https://en.wikipedia.org/wiki/Unified_Modeling_Language", "https://en.wikipedia.org/wiki/4+1_architectural_view_model", "https://engineering.atspotify.com/2022/07/software-visualization-challenge-accepted/", "https://www.infoq.com/news/2024/07/decathlon-architecture-process/", "https://www.linkedin.com/posts/popovdenys_diagramming-platforms-architecture-activity-7220039863813763073-1XQ3/", "https://en.wikipedia.org/wiki/C4_model", "https://www.infoq.com/articles/C4-architecture-model", "https://www.infoq.com/br/articles/C4-architecture-model", "https://www.infoq.com/cn/articles/C4-architecture-model", "https://www.infoq.com/jp/articles/C4-architecture-model", "https://publications.opengroup.org/c208", "https://publications.opengroup.org/g20e", "https://martinfowler.com/articles/building-infrastructure-platform.html", "http://arc42.org/"]} {"url": "https://c4model.com/history", "titulek": "History | C4 model", "h1": "History", "popis": "The C4 model for visualising software architecture (official website)", "klicova_slova": "", "kanonicka": "https://c4model.com/history", "jazyk": "en-US", "robots_meta": "", "og": {"og:title": "History", "og:locale": "en_US", "og:description": "The C4 model for visualising software architecture (official website)", "og:url": "https://c4model.com/history", "og:site_name": "C4 model", "og:type": "website"}, "jsonld": [{"@context": "https://schema.org", "@type": "WebPage", "description": "The C4 model for visualising software architecture (official website)", "headline": "History", "url": "https://c4model.com/history"}], "drobecky": [], "osnova": [{"uroven": 1, "text": "History"}, {"uroven": 2, "text": "Static structure views"}], "markdown": "# History\n\nI started running software architecture workshops somewhere around the mid-2000’s. Initially these were internal workshops for the consulting companies I worked for (to help our own developers move into tech lead/software architecture roles), but eventually the workshops were run for public audiences. The 2-day version of the workshop had a design exercise, where I’d ask the attendees to break up into small groups, read through the requirements, do some design, and draw some diagrams to summarise their solutions. The purpose of the diagrams was to provide a basis to discuss whether the solutions met the functional requirements, quality attributes, constraints, etc. But there was a problem - very few people in the room, myself included, were able to understand the diagrams!\n\n| | | | |\n| --- | --- | --- | --- |\n\nAlthough I’d been using UML for most of my own career, UML usage across the industry had already started to decline, and the attendees had very little appetite to learn UML. In my own day-to-day job as a hands-on software architect, I’d already switched away from UML because it was no longer part of how our clients worked themselves. As a consultant, building software with and/or for our clients, I had a duty to create documentation for a variety of reasons. Instead of UML, I’d started creating block diagrams in Microsoft Visio to describe the software architecture of the software we were building, at different levels of detail. I’d start with a high-level diagram showing the software we were building, the various people who were using it, plus the major external system integration points. I’d then create a diagram showing web applications, middle-tiers, databases, etc. And finally I’d sometimes create a diagram showing the high-level concepts inside an application. This seemed to work well, so I thought I’d just teach this approach on my workshop as a way to help fix the diagramming issues. This is the root of the C4 model.\n\n## Static structure views\n\nI ran a 1-day condensed version of the workshop at the QCon London conference in March 2010, I think in conjunction with a colleague, where we each presented different parts of the workshop during the day. I had a side-interest in photography at the time, and had the idea to use different camera lens types (wide angle, telephoto, macro) to describe the different types of software architecture diagrams that I was creating. The following slide appeared in that workshop:\n\nPerhaps just a week later I presented a session at IASA London titled “Where do you start?” - a talk about how you take a vague idea and turn it into a technical solution, by starting with the “big picture” and working down into the detail. I presented the same camera lens analogy (now wide angle, standard, telephoto, macro), but the four defined levels of abstractions (systems, containers, components, and classes) made an appearance:\n\nMy workshop at QCon London 2011 (this time titled, “Designing software, drawing pictures”) builds upon all of this, being more explicit about the hierarchy of diagrams and elements.\n\nThis is the first reference to the “C4” name that I can find too, although the final “C” represents classes because I was writing Java and C# code at the time.\n\nThis was reinforced in my “Effective sketches” workshop (the original name for my diagramming workshop) at DevWeek 2012:\n\nThis slide from “Effective architecture sketches” at GOTO Aarhus 2012 additionally has a note about how other views are important:\n\nAgile 2013, and “Simple sketches for diagramming your software architecture” included the following slide, which is one of the first references I can find to using the “maps of your code” analogy:\n\nThis next slide was in my talk at Craft Conference 2014, titled “Agility and the essence of software architecture”. The fact that it’s in a widescreen format suggests this was already a part of my workshop, and modified for this particular event.\n\nFast-forward to an agile meetup that I spoke at in Hong Kong at the start of 2016, the talk titled, “The Art of Visualising Software Architecture” included a variation of a slide we’ve seen before. Note how “Classes” has changed to “Classes (or code)”.\n\nMy “The Art of Visualising Software Architecture” talk at a GOTO Night in Copenhagen during March 2016 included a small change, but one that helped to reinforce the hierarchical nature of the diagrams. “Code” has become capitalised, and the description says, “Component implementation details”.\n\nIn my “Visualising software architecture with the C4 model” talk at the Virtual JUG in March 2018, this was finally switched from “Classes” to “Code”, which brings us to where we are today.", "znaku_textu": 4743, "slov": 771, "odkazu": 37, "kodovani": "windows-1250", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:16:56", "sha256": "782960255d318aee0512d193d75d3e457eb0f98159f315705ae904adf207df0e", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://www.oreilly.com/library/view/the-c4-model/9798341660113/", "https://www.youtube.com/watch?v=x2-rSnhpw0g", "https://simonbrown.je/workshops", "https://www.patreon.com/c4model", "https://creativecommons.org/licenses/by/4.0/"]} {"url": "https://c4model.com/introduction", "titulek": "Introduction | C4 model", "h1": "Introduction", "popis": "The C4 model for visualising software architecture (official website)", "klicova_slova": "", "kanonicka": "https://c4model.com/introduction", "jazyk": "en-US", "robots_meta": "", "og": {"og:title": "Introduction", "og:locale": "en_US", "og:description": "The C4 model for visualising software architecture (official website)", "og:url": "https://c4model.com/introduction", "og:site_name": "C4 model", "og:type": "website"}, "jsonld": [{"@context": "https://schema.org", "@type": "WebPage", "description": "The C4 model for visualising software architecture (official website)", "headline": "Introduction", "url": "https://c4model.com/introduction"}], "drobecky": [], "osnova": [{"uroven": 1, "text": "Introduction"}, {"uroven": 2, "text": "Common diagramming problems"}, {"uroven": 2, "text": "Maps of your code"}, {"uroven": 2, "text": "Uses and benefits"}], "markdown": "# Introduction\n\nAsk somebody in the building industry to visually communicate the architecture of a building and you’ll be presented with site plans, floor plans, elevation views, cross-section views and detail drawings. In contrast, ask a software developer to communicate the software architecture of a software system using diagrams and you’ll likely get a confused mess of boxes and lines.\n\n## Common diagramming problems\n\nCommon problems with such ad hoc diagrams include:\n\n- Notation (e.g. colour coding, shapes, element sizes, line styles, etc) is not explained or is inconsistent.\n- The purpose and meaning of elements is ambiguous.\n- Relationships between elements are missing.\n- Relationships between elements are unlabelled.\n- Generic terms such as “business logic” are used.\n- Acronyms and abbreviations are not explained.\n- Technology choices are missing.\n- Levels of abstraction are mixed.\n\nFurthermore, the problems associated with a single diagram are often exacerbated when a collection of diagrams is created:\n\n- The notation (shapes, colour coding, line styles, etc) is not consistent between diagrams.\n- The naming of elements is not consistent between diagrams.\n- The logical order in which to read the diagrams isn’t clear.\n- There is no clear transition between one diagram and the next.\n\n| | |\n| --- | --- |\n| | |\n\nAs an industry, we do have the Unified Modeling Language (UML), ArchiMate and SysML, but asking whether these provide an effective way to communicate software architecture is often irrelevant because many teams have already thrown them out in favour of much simpler “boxes and lines” diagrams. Abandoning these modelling languages is one thing but, perhaps in the race for agility, many software development teams have lost the ability to communicate visually.\n\n## Maps of your code\n\nThe C4 model was created as a way to help software development teams describe and communicate software architecture, both during up-front design sessions and when retrospectively documenting an existing codebase. It’s a way to create “maps of your code”, at various levels of detail, in the same way you would use something like Google Maps to zoom in and out of an area you are interested in.\n\n| | | | |\n| --- | --- | --- | --- |\n| | | | |\n| A [system context diagram](/diagrams/system-context) provides a starting point, showing how the software system in scope fits into the world around it. | A [container diagram](/diagrams/container) zooms into the software system in scope, showing the applications and data stores inside it. | A [component diagram](/diagrams/component) zooms into an individual container, showing the components inside it. | A [code diagram](/diagrams/code) (e.g. UML class) can be used to zoom into an individual component, showing how that component is implemented at the code level. |\n\n## Uses and benefits\n\nGood software architecture diagrams assist with communication inside and outside of software development/product teams, efficient onboarding of new staff, architecture reviews/evaluations, risk identification (e.g. [risk-storming](https://riskstorming.com)), threat modelling, etc. The goal of the C4 model is to raise the level of maturity associated with software architecture diagrams.", "znaku_textu": 3146, "slov": 461, "odkazu": 45, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:16:55", "sha256": "ce6cdd3c2ad63a43388f1b51e549866d7e22ca53a51bbb0857c443b2c9acca77", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://www.oreilly.com/library/view/the-c4-model/9798341660113/", "https://www.youtube.com/watch?v=x2-rSnhpw0g", "https://simonbrown.je/workshops", "https://www.patreon.com/c4model", "https://creativecommons.org/licenses/by/4.0/", "https://riskstorming.com/"]} {"url": "https://c4model.com/tooling", "titulek": "Tooling | C4 model", "h1": "Tooling", "popis": "The C4 model for visualising software architecture (official website)", "klicova_slova": "", "kanonicka": "https://c4model.com/tooling", "jazyk": "en-US", "robots_meta": "", "og": {"og:title": "Tooling", "og:locale": "en_US", "og:description": "The C4 model for visualising software architecture (official website)", "og:url": "https://c4model.com/tooling", "og:site_name": "C4 model", "og:type": "website"}, "jsonld": [{"@context": "https://schema.org", "@type": "WebPage", "description": "The C4 model for visualising software architecture (official website)", "headline": "Tooling", "url": "https://c4model.com/tooling"}], "drobecky": [], "osnova": [{"uroven": 1, "text": "Tooling"}, {"uroven": 2, "text": "Diagramming"}, {"uroven": 2, "text": "Modelling"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "Tool missing?"}, {"uroven": 3, "text": "Open source tools"}, {"uroven": 3, "text": "Paid/closed source tools"}], "markdown": "# Tooling\n\nFor design sessions, you might find a whiteboard or flip chart paper better for collaboration, and iterating quickly. For long-lived documentation, there are a number of tools that can help create software architecture diagrams based upon the C4 model. Here are some of the questions you should ask yourself when looking at tooling:\n\n- Who are the diagram authors, and how technical are they?\n- Who is the diagram audience, and how will they access the diagrams/documentation?\n- Diagramming or modelling ?\n- A “drag and drop” UI or “diagrams as code”?\n- Data stored in git next to your source code or stored in the tool/cloud service?\n- Easy to diff source to use in pull requests?\n- Open or closed data format?\n- Interactive or static diagrams?\n- Free or paid?\n- Open or closed source?\n- Cloud or self-hosted?\n- Short-lived or long-lived documentation?\n- Team only diagramming or enterprise-wide modelling?\n\n## Diagramming\n\nAs an industry, we’ve tended to prefer diagramming over modelling, primarily because the barrier to entry is relatively low, and it’s seen as a much simpler task. But there are a number of major problems with using diagramming tools for software architecture diagrams:\n\n1. The domain language of diagramming tools is “boxes and lines”, which means:\n - They can’t provide any assistance or validation of your diagrams.\n - You can’t query the diagrams (e.g. “show me all dependencies of component X”).\n2. Reusing diagram elements is done via copy-paste - if you rename a box, you need to rename it across every diagram where it appears.\n3. Many diagramming tools have data formats that are hard to diff, making them tricky to use in conjunction with pull requests, for example.\n\n## Modelling\n\nThe C4 model can be used irrespective of whether you use a diagramming or modelling tool, but there are some interesting opportunities when you progress from diagramming to modelling. With a modelling tool, you’re building up a non-visual model of your software architecture (a single definition of all elements and the relationships between them), and then creating different views (that become diagrams) on top of that model. This requires a little more rigour, but the problems associated with diagramming tools can be resolved - modelling tools can understand the semantics of what you’re trying to do, provide additional assistance, and renaming elements/relationships is easy.\n\nSoftware architecture models are essentially just [directed graphs](https://en.wikipedia.org/wiki/Directed_graph), consisting of nodes and edges, with diagrams showing a subset of the graph. Once you see the separation of the model (which is just structured data) and the views (which are rendered as diagrams), you quickly see there are a number of interesting opportunities that arise:\n\n- Creating alternative visualisations to help understand large and complicated architecture models - see [Does the C4 model scale?](/faq#does-the-c4-model-scale) for more.\n- Querying the model.\n- Exporting the model to other tools.\n- etc\n\nA model is just data! And we, as software developers, have an endless supply of tools to visualise and manipulate that data, including AI.\n\n## Tools\n\nModelling (recommended) Diagramming\n\n## Tool missing?\n\n### Open source tools\n\nOpen source tools can be added to this list for free. Please [get in touch](/cdn-cgi/l/email-protection#caa2afa6a6a58aabb8a9a2a3beafa9bea3b9e4a0aff5b9bfa8a0afa9bef79189feeff8faa7a5aeafa697eff8fa85baafa4eff8fab9a5bfb8a9afeff8fabea5a5a6a3a4ad) with the following information:\n\n- Name of tool\n- Short description\n- URL\n\n### Paid/closed source tools\n\nPlease [get in touch](/cdn-cgi/l/email-protection#deb6bbb2b2b19ebfacbdb6b7aabbbdaab7adf0b4bbe1adabbcb4bbbdaae3859deafbeceeb3b1babbb283fbecee8ebfb7bafbeceeaab1b1b2b7b0b9) with the following information to discuss pricing options to advertise your tool:\n\n- Name of tool\n- Short description\n- URL\n- Logo", "znaku_textu": 3845, "slov": 559, "odkazu": 42, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:17:16", "sha256": "7289ad1cea21232a6e335801016086bc4c19c7f73b36a6b1c8de709d58fdcc38", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://www.oreilly.com/library/view/the-c4-model/9798341660113/", "https://www.youtube.com/watch?v=x2-rSnhpw0g", "https://simonbrown.je/workshops", "https://www.patreon.com/c4model", "https://creativecommons.org/licenses/by/4.0/", "https://en.wikipedia.org/wiki/Directed_graph"]}