-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added C4 docs using PlantUML to aid understanding of the sample
- Loading branch information
1 parent
374211e
commit 06d0f60
Showing
4 changed files
with
86 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
@startuml | ||
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml | ||
!define DEVICONS https://raw.githubusercontent.com/tupadr3/plantuml-icon-font-sprites/master/devicons2 | ||
!define CLOUDICONS https://raw.githubusercontent.com/plantuml/plantuml-stdlib/master/cloudinsight | ||
!include DEVICONS/react_original.puml | ||
!include DEVICONS/postgresql.puml | ||
!include CLOUDICONS/kafka.puml | ||
|
||
title SummarisationSample: Containers | ||
|
||
Person(customer, "Customer") | ||
Person(manager, "Manager") | ||
|
||
System_Boundary(summarisationSample, "Summarisation Sample") { | ||
Container(customerSite, "Customer Website", "React", "Customer website, through which they manage their orders", , $sprite="react_original") | ||
Container(customerGateway, "Customer API Gateway", "C#, WebAPI", "API Gateway through which the customer website accesses underlying services") | ||
Rel(customerSite, customerGateway, "Uses", "HTTPS") | ||
|
||
Container(managementSite, "Management Website", "React", "Management website, through which managers will manage the system", $sprite="react_original") | ||
Container(managementGateway, "Customer API Gateway", "C#, WebAPI", "API Gateway through which the management website accesses underlying services") | ||
Rel(managementSite, managementGateway, "Uses", "HTTPS") | ||
|
||
ContainerDb(kafka, "Message Bus", "Kafka", "Messaging", $sprite="kafka") | ||
|
||
Container(ordersService, "Order Service", "C#, WebAPI", "Order microservice, responsible for managing orders") | ||
ContainerDb(ordersDB, "Orders Database", "PostgreSQL", "Holds order information", $sprite="postgresql") | ||
Rel(ordersService, ordersDB, "CRUD", "Entity Framework") | ||
Rel(ordersService, kafka, "Publishes Messages", "TCP") | ||
Rel(customerGateway, ordersService, "Place Order", "HTTPS") | ||
|
||
Container(activitiesService, "Activity Service", "C#, WebAPI", "Activity microservice, responsible for tracking important system activities") | ||
ContainerDb(activitiesDB, "Activities Database", "PostgreSQL", "Holds activity summaries", $sprite="postgresql") | ||
Rel(activitiesService, activitiesDB, "CRUD", "Entity Framework") | ||
Rel(activitiesService, kafka, "Subscribes to Messages", "TCP") | ||
Rel(managementGateway, activitiesService, "Get Summary", "HTTPS") | ||
} | ||
|
||
Rel(customer, customerSite, "Places Order", "HTTPS") | ||
Rel(manager, managementSite, "Requests Summary", "HTTPS") | ||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@startuml system-context | ||
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Context.puml | ||
|
||
title SummarisationSample: System Context | ||
|
||
Person(customer, "Customer") | ||
Person(manager, "Manager") | ||
System(summarisationSample, "Summarisation Sample") | ||
Rel(customer, summarisationSample, "Place Order", "HTTPS") | ||
Rel(manager, summarisationSample, "Get Activity Summary", "HTTPS") | ||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 16 | ||
VisualStudioVersion = 16.0.32407.337 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Diagrams", "Diagrams", "{DABC2AC3-E74F-41AA-BAB9-868E2C04442F}" | ||
ProjectSection(SolutionItems) = preProject | ||
C4Container.puml = C4Container.puml | ||
C4SystemContext.puml = C4SystemContext.puml | ||
EndProjectSection | ||
EndProject | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Templates", "Templates", "{0D0F88C4-F52C-4C46-8CB1-2DD828A51A43}" | ||
ProjectSection(SolutionItems) = preProject | ||
Templates\C4_Context.puml = Templates\C4_Context.puml | ||
EndProjectSection | ||
EndProject | ||
Global | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {19FB7B6C-605B-4A08-8273-6D134725E5F3} | ||
EndGlobalSection | ||
EndGlobal |