#27: Add Deployment and dynamic diagram support (2 - add samples, update readme)
parent
f89926a20e
commit
cd4b246e5d
@ -0,0 +1,50 @@
|
||||
@startuml
|
||||
!includeurl https://raw.githubusercontent.com/kirchsth/C4-PlantUML/master/C4_Deployment.puml
|
||||
' uncomment the following line and comment the first to use locally
|
||||
' !include <C4/C4_Deployment>
|
||||
|
||||
' PlantUML does not support automatic line breaks of container, if e_techn is very long insert line breaks with
|
||||
' "</size>\n<size:TECHN_FONT_SIZE>"
|
||||
' samples see below
|
||||
|
||||
title Internet Banking System - Deployment
|
||||
|
||||
LAYOUT_WITH_LEGEND()
|
||||
|
||||
Deployment_Node(Deployment__Live__BigBankplc__3f81fb2, "Big Bank plc", "Big Bank plc data center") {
|
||||
Deployment_Node(Deployment__Live__BigBankplc__bigbankweb***__23f0eac, "bigbank-web*** (x4)", "Ubuntu 16.04 LTS") {
|
||||
Deployment_Node(Deployment__Live__BigBankplc__bigbankweb***__ApacheTomcat__a4474, "Apache Tomcat", "Apache Tomcat 8.x") {
|
||||
ContainerInstance(InternetBankingSystem__WebApplication2__2493dd9, "Web Application", "Java and Spring MVC", "Delivers the static content and the Internet banking single page application.")
|
||||
}
|
||||
}
|
||||
Deployment_Node(Deployment__Live__BigBankplc__bigbankapi***__24ec565, "bigbank-api*** (x8)", "Ubuntu 16.04 LTS") {
|
||||
Deployment_Node(Deployment__Live__BigBankplc__bigbankapi***__ApacheTomcat__389f399, "Apache Tomcat", "Apache Tomcat 8.x") {
|
||||
ContainerInstance(InternetBankingSystem__APIApplication2__1b73d2e, "API Application", "Java and Spring MVC", "Provides Internet banking functionality via a JSON/HTTPS API.")
|
||||
}
|
||||
}
|
||||
Deployment_Node(Deployment__Live__BigBankplc__bigbankdb01__1cc9f55, "bigbank-db01", "Ubuntu 16.04 LTS") {
|
||||
Deployment_Node(Deployment__Live__BigBankplc__bigbankdb01__OraclePrimary__28f79f6, "Oracle - Primary", "Oracle 12c") {
|
||||
ContainerInstanceDb(InternetBankingSystem__Database2__1f227f4, "Database", "Relational Database Schema", "Stores user registration information, hashed authentication credentials, access logs, etc.")
|
||||
}
|
||||
}
|
||||
Deployment_Node(Deployment__Live__BigBankplc__bigbankdb02__2eae566, "bigbank-db02", "Ubuntu 16.04 LTS") {
|
||||
Deployment_Node(Deployment__Live__BigBankplc__bigbankdb02__OracleSecondary__24d13de, "Oracle - Secondary", "Oracle 12c") {
|
||||
ContainerInstanceDb(InternetBankingSystem__Database3__3296ca6, "Database", "Relational Database Schema", "Stores user registration information, hashed authentication credentials, access logs, etc.")
|
||||
}
|
||||
}
|
||||
}
|
||||
Deployment_Node(Deployment__Live__Customer'scomputer__2c36bed, "Customer's computer", "Microsoft Windows or Apple </size>\n<size:TECHN_FONT_SIZE>macOS") {
|
||||
Deployment_Node(Deployment__Live__Customer'scomputer__WebBrowser__18307f7, "Web Browser", "Google Chrome, Mozilla </size>\n<size:TECHN_FONT_SIZE>Firefox, Apple Safari or </size>\n<size:TECHN_FONT_SIZE>Microsoft Edge") {
|
||||
ContainerInstance(InternetBankingSystem__SinglePageApplication2__22cc62b, "Single-Page Application", "JavaScript and Angular", "Provides all of the Internet banking functionality to customers via their web browser.")
|
||||
}
|
||||
}
|
||||
Deployment_Node(Deployment__Live__Customer'smobiledevice__38a070b, "Customer's mobile device", "Apple iOS or Android") {
|
||||
ContainerInstance(InternetBankingSystem__MobileApp1__1bb919c, "Mobile App", "Xamarin", "Provides a limited subset of the Internet banking functionality to customers via their mobile device.")
|
||||
}
|
||||
Rel(InternetBankingSystem__APIApplication2__1b73d2e, InternetBankingSystem__Database2__1f227f4, "Reads from and writes to", "JDBC")
|
||||
Rel(InternetBankingSystem__APIApplication2__1b73d2e, InternetBankingSystem__Database3__3296ca6, "Reads from and writes to", "JDBC")
|
||||
Rel(InternetBankingSystem__MobileApp1__1bb919c, InternetBankingSystem__APIApplication2__1b73d2e, "Makes API calls to", "JSON/HTTPS")
|
||||
Rel(InternetBankingSystem__SinglePageApplication2__22cc62b, InternetBankingSystem__APIApplication2__1b73d2e, "Makes API calls to", "JSON/HTTPS")
|
||||
Rel_Up(InternetBankingSystem__WebApplication2__2493dd9, InternetBankingSystem__SinglePageApplication2__22cc62b, "Delivers to the customer's web browser")
|
||||
Rel_Left(Deployment__Live__BigBankplc__bigbankdb01__OraclePrimary__28f79f6, Deployment__Live__BigBankplc__bigbankdb02__OracleSecondary__24d13de, "Replicates data to")
|
||||
@enduml
|
||||
@ -0,0 +1,20 @@
|
||||
@startuml
|
||||
!includeurl https://raw.githubusercontent.com/kirchsth/C4-PlantUML/master/C4_Dynamic.puml
|
||||
' uncomment the following line and comment the first to use locally
|
||||
' !include <C4/C4_Dynamic>
|
||||
|
||||
' Structurizr.DynamicView: SignIn
|
||||
title API Application - Dynamic
|
||||
|
||||
LAYOUT_WITH_LEGEND()
|
||||
|
||||
ContainerDb(InternetBankingSystem__Database__1edef6c, "Database", "Relational Database Schema", "Stores user registration information, hashed authentication credentials, access logs, etc.")
|
||||
Container(InternetBankingSystem__SinglePageApplication__23f6823, "Single-Page Application", "JavaScript and Angular", "Provides all of the Internet banking functionality to customers via their web browser.")
|
||||
Container_Boundary(InternetBankingSystem__APIApplication__31f1f25, "API Application") {
|
||||
Component(InternetBankingSystem__APIApplication__SecurityComponent__10c9772, "Security Component", "Spring Bean", "Provides functionality related to signing in, changing passwords, etc.")
|
||||
Component(InternetBankingSystem__APIApplication__SignInController__1fa4f18, "Sign In Controller", "Spring MVC Rest Controller", "Allows users to sign in to the Internet Banking System.")
|
||||
}
|
||||
Rel_Right(InternetBankingSystem__SinglePageApplication__23f6823, InternetBankingSystem__APIApplication__SignInController__1fa4f18, "1: Submits credentials to", "JSON/HTTPS")
|
||||
Rel(InternetBankingSystem__APIApplication__SignInController__1fa4f18, InternetBankingSystem__APIApplication__SecurityComponent__10c9772, "2: Calls isAuthenticated() on")
|
||||
Rel_Right(InternetBankingSystem__APIApplication__SecurityComponent__10c9772, InternetBankingSystem__Database__1edef6c, "3: select * from users where username = ?", "JDBC")
|
||||
@enduml
|
||||
Loading…
Reference in New Issue