---
title: BizTalk L2 Container Diagram Example | Runtime Building Blocks
description: BizTalk L2 Container diagram example with copy-paste Mermaid markup. Shows the BizTalk application picture (Receive Locations in Receive Port boundaries, Orchestrations, Send Port Groups, and Send Ports in Layer boundaries) for an Order-to-Cash integration hub.
---

# <i class="fal fa-container-storage" aria-hidden="true"></i> BizTalk L2 Container Diagram Example

This BizTalk container diagram is the L2 view of the [BizTalk example set][BizTalk Overview]. It zooms into BizTalk Server from the [L1 Context example][L1 Example] and shows the application picture: the runtime building blocks and the message flows between them.

The goal is architectural clarity: how [Receive Locations][], [Orchestrations][], [Send Port Groups][], and [Send Ports][] collaborate. It follows the layout the [BizTalk C4 wizard][Generate BizTalk Applications] generates. Copy the `C4Container` markup below and follow [Import Your First C4 Diagram][] to import it into a [C4 Diagram Set][What is a C4 Diagram Set?]. See [C4 Diagrams][] for the concepts.

<sup><span class="nodinite-new-badge">New 7.12</span></sup> An L2 shows the inside of one [System][Systems], its Architectural Scope:

* The `System_Boundary` named *BizTalk Server* is the subject boundary. The import wizard takes the scope from it when its name matches a System. The L1's import creates that System ([Before you import][BizTalk Overview#before-you-import]); on a Repository without it, the Scope step offers **Use the System this import creates: BizTalk Server**. In the Designer its binding is derived from the scope and read-only.
* Each receive location, orchestration, send port group, and send port is a `Container` that binds to a [Service][Services] or a [Contract][Contracts], never to a System. **Resolve All** creates a Service of *BizTalk Server* for each one without a match, such as *INT1337-ORC-Order-Processing* and *INT1337-SPG-Order-Distribution*.
* The Portal and the other business systems are drawn outside as `System_Ext` and bind to their Systems.
* The generic Layer boundaries (*Ingress Messaging*, *Processing and Orchestration*, *Egress Messaging*) and each receive port's *Receive Port* boundary are groupings. **Resolve All** creates a [Domain][Domains] for each; to keep one an unbound grouping, as the [BizTalk C4 wizard][Generate BizTalk Applications] draws them, choose **Leave unbound** on its row.

![Import the L2 Container markup of this page: the scope is taken from the subject boundary, Resolve All creates the orchestration and the port group, Import, and open the diagram, animated walkthrough (7.13)][Hero]  
*Animated walkthrough, after the [L1 example][L1 Example] is imported: the wizard takes the scope from the *BizTalk Server* boundary, six Services match, and the diagram *BizTalk Server - Container View* opens.*  

![BizTalk L2 Container diagram: the BizTalk Server System Boundary with Ingress Messaging and its two Receive Port boundaries, Processing and Orchestration, and Egress Messaging, the Customer, Portal, and the business and external Systems above (7.12)][1]  
*An L2 Container diagram of BizTalk Server imported into <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span>, with its containers grouped in boundaries.*  

## Example Diagram

<table>
<tr>
<th><i class="fal fa-eye" aria-hidden="true"></i> Preview</th>
<th><i class="fal fa-code" aria-hidden="true"></i> Mermaid Code</th>
</tr>
<tr>
<td>

```mermaid
C4Container
    title BizTalk Server - Container View
    Person_Ext(customer_user, "Customer", "Submits orders and receives status")
    System_Ext(portal, "Portal", "Customer-facing order capture and confirmation")
    System_Boundary(biztalk_hub, "BizTalk Server") {
        Boundary(ingress, "Ingress Messaging", "Layer") {
            Boundary(rp_order, "Receive Port - INT1337-Order-Incoming", "Receive Port") {
                Container(biztalk_receive, "INT1337-RCV-Order-Incoming", "FILE", "Receive Location on port INT1337-Order-Incoming")
            }
            Boundary(rp_delivered, "Receive Port - INT1337-Order-Delivered", "Receive Port") {
                Container(dlv_delivered, "INT1337-RCV-Order-Delivered", "FILE", "Receive Location on port INT1337-Order-Delivered")
            }
        }
        Boundary(processing, "Processing and Orchestration", "Layer") {
            Container(biztalk_orch, "INT1337-ORC-Order-Processing", "XLANG/s", "Stateful process orchestration")
        }
        Boundary(egress, "Egress Messaging", "Layer") {
            ContainerQueue(spg_order, "INT1337-SPG-Order-Distribution", "Send Port Group", "Fans the processed order out to its send ports")
            Container(biztalk_send, "INT1337-SND-Confirm-Outgoing", "SOAP", "Send Port")
            Container(pln_scheduled, "INT1337-PLN-Order-Scheduled", "FILE", "Send Port")
            Container(pkg_packed, "INT1337-PKG-Order-Packed", "REST", "Send Port")
            Container(inv_invoiced, "INT1337-INV-Order-Invoiced", "SOAP", "Send Port")
        }
    }
    System_Ext(erp, "ERP", "Order and inventory domain")
    System_Ext(wms, "Warehouse Management System", "Fulfillment domain")
    System_Ext(erp_finance, "ERP-Finance", "Invoice and payment domain")
    System_Ext(payment_gateway, "Payment Gateway", "Processes customer credit card payments")
    SystemQueue_Ext(edi_gateway, "EDI Gateway", "B2B document exchange")
    Rel(customer_user, portal, "Place order", "HTTPS, JSON")
    Rel(portal, biztalk_receive, "Drop the order file", "FILE")
    Rel(biztalk_receive, biztalk_orch, "Publish the order", "XML / O2C.Order.Received/1.0")
    Rel(biztalk_orch, biztalk_send, "Publish the confirmation", "XML")
    Rel(biztalk_send, portal, "Return the order confirmation", "SOAP")
    Rel(biztalk_orch, spg_order, "Publish the processed order", "XML")
    Rel(spg_order, pln_scheduled, "Subscribe", "XML")
    Rel(spg_order, pkg_packed, "Subscribe", "XML")
    Rel(pln_scheduled, erp, "Schedule production", "FILE")
    Rel(pkg_packed, wms, "Request packing", "REST")
    Rel(wms, dlv_delivered, "Confirm delivery", "FILE")
    Rel(dlv_delivered, inv_invoiced, "Publish the delivery", "PSV / O2C.Order.Delivered/1.0")
    Rel(inv_invoiced, erp_finance, "Create invoice", "SOAP")
    Rel(inv_invoiced, payment_gateway, "Request payment", "REST")
    BiRel(inv_invoiced, edi_gateway, "Exchange invoice documents", "AS2")
```

</td>
<td>

```text
C4Container
    title BizTalk Server - Container View
    Person_Ext(customer_user, "Customer", "Submits orders and receives status")
    System_Ext(portal, "Portal", "Customer-facing order capture and confirmation")
    System_Boundary(biztalk_hub, "BizTalk Server") {
        Boundary(ingress, "Ingress Messaging", "Layer") {
            Boundary(rp_order, "Receive Port - INT1337-Order-Incoming", "Receive Port") {
                Container(biztalk_receive, "INT1337-RCV-Order-Incoming", "FILE", "Receive Location on port INT1337-Order-Incoming")
            }
            Boundary(rp_delivered, "Receive Port - INT1337-Order-Delivered", "Receive Port") {
                Container(dlv_delivered, "INT1337-RCV-Order-Delivered", "FILE", "Receive Location on port INT1337-Order-Delivered")
            }
        }
        Boundary(processing, "Processing and Orchestration", "Layer") {
            Container(biztalk_orch, "INT1337-ORC-Order-Processing", "XLANG/s", "Stateful process orchestration")
        }
        Boundary(egress, "Egress Messaging", "Layer") {
            ContainerQueue(spg_order, "INT1337-SPG-Order-Distribution", "Send Port Group", "Fans the processed order out to its send ports")
            Container(biztalk_send, "INT1337-SND-Confirm-Outgoing", "SOAP", "Send Port")
            Container(pln_scheduled, "INT1337-PLN-Order-Scheduled", "FILE", "Send Port")
            Container(pkg_packed, "INT1337-PKG-Order-Packed", "REST", "Send Port")
            Container(inv_invoiced, "INT1337-INV-Order-Invoiced", "SOAP", "Send Port")
        }
    }
    System_Ext(erp, "ERP", "Order and inventory domain")
    System_Ext(wms, "Warehouse Management System", "Fulfillment domain")
    System_Ext(erp_finance, "ERP-Finance", "Invoice and payment domain")
    System_Ext(payment_gateway, "Payment Gateway", "Processes customer credit card payments")
    SystemQueue_Ext(edi_gateway, "EDI Gateway", "B2B document exchange")
    Rel(customer_user, portal, "Place order", "HTTPS, JSON")
    Rel(portal, biztalk_receive, "Drop the order file", "FILE")
    Rel(biztalk_receive, biztalk_orch, "Publish the order", "XML / O2C.Order.Received/1.0")
    Rel(biztalk_orch, biztalk_send, "Publish the confirmation", "XML")
    Rel(biztalk_send, portal, "Return the order confirmation", "SOAP")
    Rel(biztalk_orch, spg_order, "Publish the processed order", "XML")
    Rel(spg_order, pln_scheduled, "Subscribe", "XML")
    Rel(spg_order, pkg_packed, "Subscribe", "XML")
    Rel(pln_scheduled, erp, "Schedule production", "FILE")
    Rel(pkg_packed, wms, "Request packing", "REST")
    Rel(wms, dlv_delivered, "Confirm delivery", "FILE")
    Rel(dlv_delivered, inv_invoiced, "Publish the delivery", "PSV / O2C.Order.Delivered/1.0")
    Rel(inv_invoiced, erp_finance, "Create invoice", "SOAP")
    Rel(inv_invoiced, payment_gateway, "Request payment", "REST")
    BiRel(inv_invoiced, edi_gateway, "Exchange invoice documents", "AS2")
```

</td>
</tr>
</table>

## Component Type Highlights

* <i class="fal fa-plug" aria-hidden="true"></i> Integration runtime components: Receive Locations, Orchestrations, Send Ports
* <i class="fal fa-layer-group" aria-hidden="true"></i> Send port group: drawn as a `ContainerQueue`
* <i class="fal fa-object-group" aria-hidden="true"></i> Groupings: the Layer boundaries and one *Receive Port* boundary per receive port, Domains or unbound (**Leave unbound**)

## Import-Friendly Notes

* Integration technologies are explicit (for example `XLANG/s`, `SOAP`, `REST`, `FILE`) to improve classification hints.
* <sup><span class="nodinite-new-badge">New 7.12</span></sup> The subscription Flows out of the receive locations carry the published [Message Type][Message Types] after ` / `, such as `XML / O2C.Order.Received/1.0`. The import resolves that text by exact name; other technologies are protocols only.
* The BizTalk MessageBox, the Tracking Database, maps, pipelines, and file shares are not on the L2. Maps and pipelines belong on the L3 of the Service that uses them, and an address (such as a file share) is an [Endpoint][Endpoints] on that L3. Platform databases have no Service; if you draw them, they stay unbound and [Diagram Assistance][] flags them with the hint *Unbound element*.
* <sup><span class="nodinite-new-badge">New 7.13</span></sup> Routes through the MessageBox are drawn as direct Flows instead: the [BizTalk wizard][See Orchestration Routes in BizTalk C4 Diagrams] adds an **Activation filter** Flow from receive locations to the direct-bound orchestration they start, and a **Publishes via MessageBox** Flow from an orchestration to its subscriber (dashed **Likely publishes** when only a property match links them).

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

* <i class="fal fa-cube" aria-hidden="true"></i> [L3 Component Diagram Example][L3 Example]  
* <i class="fal fa-server" aria-hidden="true"></i> [BizTalk Example Set][BizTalk Overview]  
* <i class="fal fa-upload" aria-hidden="true"></i> [Import Your First C4 Diagram][]  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

* <i class="fal fa-sitemap" aria-hidden="true"></i> [L1 Context Diagram Example][L1 Example]  
* <i class="fal fa-cloud" aria-hidden="true"></i> [Azure L2 Container Diagram Example][Azure L2]  
* <i class="fal fa-route" aria-hidden="true"></i> [Migration L2 Container Diagram Example][Migration L2]  
* <i class="fal fa-book" aria-hidden="true"></i> [C4 Example Library Overview][Examples Overview]  
* <i class="fal fa-table" aria-hidden="true"></i> [C4 Model vs Nodinite Concept Mapping][]  

[1]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Repository/C4/Examples/BT/Container.png

[Azure L2]:https://docs.nodinite.com/repository-model/c4-diagrams/getting-started/examples/azure/l2-container-diagram-example/
[BizTalk Overview]:https://docs.nodinite.com/repository-model/c4-diagrams/getting-started/examples/biztalk/overview/
[BizTalk Overview#before-you-import]:https://docs.nodinite.com/repository-model/c4-diagrams/getting-started/examples/biztalk/overview/#before-you-import
[C4 Diagrams]:https://docs.nodinite.com/repository-model/c4-diagrams/overview/
[C4 Model vs Nodinite Concept Mapping]:https://docs.nodinite.com/repository-model/c4-diagrams/troubleshooting/c4-model-vs-nodinite-concept-mapping/
[Contracts]:https://docs.nodinite.com/getting-started/repository/contracts/overview/
[Diagram Assistance]:https://docs.nodinite.com/repository-model/c4-diagrams/features/diagram-assistance/
[Domains]:https://docs.nodinite.com/repository-model/domains/overview/
[Endpoints]:https://docs.nodinite.com/repository-model/endpoints/overview/
[Examples Overview]:https://docs.nodinite.com/repository-model/c4-diagrams/getting-started/examples/overview/
[Generate BizTalk Applications]:https://docs.nodinite.com/getting-started/repository/c4-diagrams/generate-c4-diagram-sets-from-biztalk-applications/
[Hero]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Repository/C4/Examples/BT/C4_BizTalkExample_L2.gif
[Import Your First C4 Diagram]:https://docs.nodinite.com/repository-model/c4-diagrams/getting-started/import-your-first-c4-diagram/
[L1 Example]:https://docs.nodinite.com/repository-model/c4-diagrams/getting-started/examples/biztalk/l1-context-diagram-example/
[L3 Example]:https://docs.nodinite.com/repository-model/c4-diagrams/getting-started/examples/biztalk/l3-component-diagram-example/
[Message Types]:https://docs.nodinite.com/repository-model/message-types/overview/
[Migration L2]:https://docs.nodinite.com/repository-model/c4-diagrams/getting-started/examples/migration/l2-container-diagram-example/
[Orchestrations]:https://docs.nodinite.com/logging-and-monitoring/microsoft-biztalk-server-monitoring/features/orchestrations/overview/
[Receive Locations]:https://docs.nodinite.com/logging-and-monitoring/microsoft-biztalk-server-monitoring/features/receive-locations/overview/
[See Orchestration Routes in BizTalk C4 Diagrams]:https://docs.nodinite.com/getting-started/repository/c4-diagrams/see-orchestration-routes-in-biztalk-c4-diagrams/
[Send Port Groups]:https://docs.nodinite.com/logging-and-monitoring/microsoft-biztalk-server-monitoring/features/send-port-groups/overview/
[Send Ports]:https://docs.nodinite.com/logging-and-monitoring/microsoft-biztalk-server-monitoring/features/send-ports/overview/
[Services]:https://docs.nodinite.com/repository-model/services/overview/
[Systems]:https://docs.nodinite.com/repository-model/systems/overview/
[What is a C4 Diagram Set?]:https://docs.nodinite.com/repository-model/c4-diagrams/features/what-is-a-c4-diagram-set/