<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Duc Doan on Medium]]></title>
        <description><![CDATA[Stories by Duc Doan on Medium]]></description>
        <link>https://medium.com/@doanminhduc?source=rss-6816e679d62f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*PvUvmJZIfAtbAzeZhbRcyw.png</url>
            <title>Stories by Duc Doan on Medium</title>
            <link>https://medium.com/@doanminhduc?source=rss-6816e679d62f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 00:06:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@doanminhduc/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The OutSystems architecture that anyone can understand]]></title>
            <link>https://doanminhduc.medium.com/an-outsystems-architecture-that-anyone-can-understand-f0d677f250d4?source=rss-6816e679d62f------2</link>
            <guid isPermaLink="false">https://medium.com/p/f0d677f250d4</guid>
            <category><![CDATA[outsystems]]></category>
            <category><![CDATA[architecture]]></category>
            <dc:creator><![CDATA[Duc Doan]]></dc:creator>
            <pubDate>Thu, 04 May 2023 10:58:14 GMT</pubDate>
            <atom:updated>2024-12-10T07:55:56.935Z</atom:updated>
            <content:encoded><![CDATA[<h4>As someone who needs to design system architecture in a tech company with a diversified tech stack, I have found that using the C4 model combined with the Architecture Canvas is an effective way of doing so. In this article, I will explain what the C4 model is and how it can be used with the Architecture Canvas to design a system architecture from simple to complex.</h4><h3>What is the C4 model?</h3><blockquote>The C4 model is a widely used visual representation of a software system architecture. It consists of a set of diagrams that describe the system at different levels of abstraction.</blockquote><p>The C4 model consists of four levels:</p><ul><li>Context level: This level describes the system in the context of the business or organization. It shows the system’s external users, other systems it interacts with, and the business goals it supports.</li><li>Container level: This level describes the high-level architecture of the system. It shows the containers that make up the system and how they interact with each other.</li><li>Component level: This level describes the internal structure of each container. It shows the components that make up each container and how they interact with each other.</li><li>Code level: This level describes the code-level details of each component. It shows the classes, methods, and other implementation details.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ua4PcTa9fx5ayIyA.png" /><figcaption>Different levels of zoom allow you to tell different stories to different audiences.</figcaption></figure><p>You can take a look at the C4 model built using Structurizr (a tool that provides diagrams as code) using the link provided below.</p><p><a href="https://structurizr.com/share/36141/diagrams#SystemContext">Structurizr - Big Bank plc - Internet Banking System</a></p><h3><strong>What is the Architecture Canvas?</strong></h3><blockquote>The Architecture Canvas is an OutSystems architecture tool to make the design of Service-Oriented Architectures (SOA) simple.</blockquote><blockquote>It promotes the correct abstraction of reusable (micro)services and the correct isolation of distinct functional modules, in cases where you are developing and maintaining multiple applications that reuse common modules.</blockquote><figure><img alt="OutSystem Architecture Canvas" src="https://cdn-images-1.medium.com/max/1024/0*ZPu4fgr-UA_hiC1r" /><figcaption>The Architecture Canvas</figcaption></figure><p>The Architecture Canvas is used in two different stages of the architecture design:</p><ol><li><strong>Identifying concepts (functional, non-functional, and integration needs)</strong> The canvas helps collect architecture requirements in a structured and systematic way.</li><li><strong>Define modules</strong> Design the modules that implement the identified concepts, following the <a href="https://success.outsystems.com/documentation/best_practices/architecture/designing_the_architecture_of_your_outsystems_applications/integration_patterns_for_core_services_abstraction/">recommended patterns</a>.</li></ol><h3>But why do we need to combine the C4 model with the Architecture Canvas?</h3><p>The C4 model is a universal language and widely adopted way of representing software system architecture, regardless of the tech stack.</p><p>Combining the two models will help establish ubiquitous languages between tech stacks, allowing architects and developers to contribute to the architecture. It also helps reduce the burden of maintaining the SAD (System Architecture Design) of a complex system while still leveraging the best of both worlds.</p><h3>Using the C4 Model and Architecture Canvas Together</h3><p>The tools that I suggest using with the C4 model are <a href="https://www.drawio.com/">DrawIO</a> (for quick drafts) and <a href="https://structurizr.com/">Structurizr</a> (for long-lived documents).</p><p><strong>Step 1: Context level</strong></p><blockquote>This level describes the system in the context of a business or organization. It shows the system’s external users, other systems it interacts with, and the business goals it supports.</blockquote><p>In this step, identify the following:</p><ul><li>Who are the users? How many kinds of users are there? What is their relationship with the system?</li><li>What are the systems that you need to interact with? What do they do? What is their relationship?</li></ul><p>There is no need for the Architecture Canvas. The output of this step should look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L_8_o-V6uihdSlhbn9H9bA.png" /><figcaption>Level 1 — System Context</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OTcU6PPdwu2BEhq8oOlrJA.png" /><figcaption>Level 1 — Legends</figcaption></figure><p><strong>Step 2: Container level</strong></p><blockquote>This level describes the high-level architecture of the system. It shows the containers that make up the system and how they interact with each other.</blockquote><p>List out all the applications that make up the system and their relationships. You can apply <a href="https://success.outsystems.com/documentation/best_practices/architecture/designing_the_architecture_of_your_outsystems_applications/application_composition/applying_the_architecture_canvas_to_applications/">Architecture Canvas to applications</a> to better understand the dependencies among them. Colors are used to separate the concepts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/778/0*cn9F1W6tQPs7tgF6" /></figure><p>Your final result should look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*njmuwJ2bt7Zp4H1vg0lADg.png" /><figcaption>Level 2 — Container</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZhoAn1kV3-TPNsR9zD0_1g.png" /><figcaption>Level 2 — Legends</figcaption></figure><p><strong>Step 3: Component level</strong></p><blockquote>This level describes the internal structure of each container. It shows the components that make up each container and how they interact with each other.</blockquote><p>Here, I use the color scheme from Architecture Canvas to separate the modules with different concepts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5Ao_PINoJqOPnuslJW4ZZA.png" /><figcaption>Level 3 — Component</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*96F_a-cnM6a5YjsY8yhBQQ.png" /><figcaption>Level 3 — Legends</figcaption></figure><p><strong>Step 4: Code level</strong></p><p>This level describes the code-level details of each component. It shows the classes, methods, and other implementation details.</p><p>At the code level, you can start using UML diagrams to document your code flow.</p><h3>How about a complex enterprise architecture with multiple systems?</h3><p>Here is an example of a system landscape for a large enterprise using the C4 model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N9V1VWJiOW0eWiaSIlCf_w.png" /><figcaption>Level 0 — System Landscape</figcaption></figure><p>The team in charge of each system can begin at Level 1 and move towards Level 4. The system landscape, which is mostly utilized at the enterprise level, describes the broader story and the relationships between systems. Additionally, you can manage all of the architectures in one location without losing context, thanks to the C4 model.</p><h3>Conclusion</h3><p>I believe that the fusion of the C4 model and the Architecture Canvas forms an effective strategy for designing and visualizing software system architectures for OutSystems projects. The C4 model presents a system’s architecture in a layered manner, starting from the business context to high-level architecture, then the components within each container, and finally, the code-level specifics of each component​. Architecture Canvas, a tool provided by OutSystems, makes the design of Service-Oriented Architectures (SOA) more manageable by promoting the right abstraction of reusable services and the isolation of unique functional modules​.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0d677f250d4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>