|
| 1 | +--- |
| 2 | +layout: page |
| 3 | +title: C4 Context |
| 4 | +parent: Architecture |
| 5 | +nav_order: 6 |
| 6 | +has_children: true |
| 7 | +is_not_draft: false |
| 8 | +last_modified_date: 2024-05-28 |
| 9 | +owner: Ross Buggins |
| 10 | +author: Ross Buggins |
| 11 | +--- |
| 12 | + |
| 13 | +```mermaid |
| 14 | + C4Context |
| 15 | + title System Context diagram for Internet Banking System |
| 16 | + Enterprise_Boundary(b0, "BankBoundary0") { |
| 17 | + Person(customerA, "Banking Customer A", "A customer of the bank, with personal bank accounts.") |
| 18 | + Person(customerB, "Banking Customer B") |
| 19 | + Person_Ext(customerC, "Banking Customer C", "desc") |
| 20 | +
|
| 21 | + Person(customerD, "Banking Customer D", "A customer of the bank, <br/> with personal bank accounts.") |
| 22 | +
|
| 23 | + System(SystemAA, "Internet Banking System", "Allows customers to view information about their bank accounts, and make payments.") |
| 24 | +
|
| 25 | + Enterprise_Boundary(b1, "BankBoundary") { |
| 26 | +
|
| 27 | + SystemDb_Ext(SystemE, "Mainframe Banking System", "Stores all of the core banking information about customers, accounts, transactions, etc.") |
| 28 | +
|
| 29 | + System_Boundary(b2, "BankBoundary2") { |
| 30 | + System(SystemA, "Banking System A") |
| 31 | + System(SystemB, "Banking System B", "A system of the bank, with personal bank accounts. next line.") |
| 32 | + } |
| 33 | +
|
| 34 | + System_Ext(SystemC, "E-mail system", "The internal Microsoft Exchange e-mail system.") |
| 35 | + SystemDb(SystemD, "Banking System D Database", "A system of the bank, with personal bank accounts.") |
| 36 | +
|
| 37 | + Boundary(b3, "BankBoundary3", "boundary") { |
| 38 | + SystemQueue(SystemF, "Banking System F Queue", "A system of the bank.") |
| 39 | + SystemQueue_Ext(SystemG, "Banking System G Queue", "A system of the bank, with personal bank accounts.") |
| 40 | + } |
| 41 | + } |
| 42 | + } |
| 43 | +
|
| 44 | + BiRel(customerA, SystemAA, "Uses") |
| 45 | + BiRel(SystemAA, SystemE, "Uses") |
| 46 | + Rel(SystemAA, SystemC, "Sends e-mails", "SMTP") |
| 47 | + Rel(SystemC, customerA, "Sends e-mails to") |
| 48 | +
|
| 49 | + UpdateElementStyle(customerA, $fontColor="red", $bgColor="grey", $borderColor="red") |
| 50 | + UpdateRelStyle(customerA, SystemAA, $textColor="blue", $lineColor="blue", $offsetX="5") |
| 51 | + UpdateRelStyle(SystemAA, SystemE, $textColor="blue", $lineColor="blue", $offsetY="-10") |
| 52 | + UpdateRelStyle(SystemAA, SystemC, $textColor="blue", $lineColor="blue", $offsetY="-40", $offsetX="-50") |
| 53 | + UpdateRelStyle(SystemC, customerA, $textColor="red", $lineColor="red", $offsetX="-50", $offsetY="20") |
| 54 | +
|
| 55 | + UpdateLayoutConfig($c4ShapeInRow="3", $c4BoundaryInRow="1") |
| 56 | +
|
| 57 | +
|
| 58 | +
|
| 59 | +``` |
0 commit comments