-
Notifications
You must be signed in to change notification settings - Fork 1
/
workspace.dsl
210 lines (176 loc) · 6.37 KB
/
workspace.dsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
# © 2022 DAEDALUS, Inc. Unauthorized use, distribution, or duplication is prohibited.
workspace "MILA" "Multiple Images Lightweight Acquisition" {
!identifiers hierarchical
!impliedRelationships false
model {
matt = person "Material scientist" "Leverages smartphone facilities to capture materials properties." ""
simon = person "Simulation engineer" "Crafts physics-based simulation." ""
mila = softwareSystem "MILA" "Provides lightweight material acquisition facilities & crafts self-contained material assets." "" {
url https://github.com/rvr06/c4-bootcamp/blob/main/stage%2000/specs.md
spa = container "Web application" "Provides limited facilities to upload constrained pictures set." "Blazor" "#web" {
}
mobile = container "Mobile application" "Provides uncluttered interface to ease pictures shooting, stiching & uploading." "Xamarin" "#mobile" {
acquisition = component "Acquisition" "Handles smartphone built-in capabilities." "C#" "" {
}
preparation = component "Preparation" "Provides images tooling such as cropping & stitching facilities." "C#" "" {
}
uploading = component "Uploading" "Handles back-end communication." "C#" "" {
}
}
api = container "API application" "Extracts spatially varying BRDF-Cook-Torrance with normals, diffuse, roughness & specular maps from pictures set leveraring deep neural network." "" "" {
}
store = container "Materials store" "Stores enriched materials & supplies powerful queries API." "MongoDB" "#db" {
}
}
icarus = softwareSystem "Icarus" "Provides powerful facilities to work with physics materials." "#external" {
}
matt -> mila "sends pictures to" "" ""
matt -> mila.spa "uses" "" ""
matt -> mila.mobile "uses" "" ""
simon -> icarus "uses" "" ""
icarus -> mila "fetches materials from" "" ""
icarus -> mila.store "fetches materials from" "" ""
mila.spa -> mila.api "makes API call to" "" ""
mila.mobile -> mila.api "makes API call to" "" ""
mila.api -> mila.store "stores materials to" "" ""
mila.mobile.acquisition -> mila.mobile.preparation "feeds" "" ""
mila.mobile.preparation -> mila.mobile.uploading "packages" "" ""
dev_ = deploymentEnvironment "dev" {
deploymentNode "User workstation" "" "Microsoft Windows 10" "" 1 {
deploymentNode "Web browser" "" "Opera" "" 1 {
spa_ = containerInstance mila.spa "" "" {
}
}
icarus_ = softwareSystemInstance icarus "" "" {
}
deploymentNode "Virtual device" "" "Android" "" 1 {
mobile_ = containerInstance mila.mobile "" "" {
}
}
deploymentNode "Orchestration" "" "Docker-compose" "" 1 {
deploymentNode "mcr.microsoft.com/dotnet/aspnet:6.0" "" "Docker" "" 1 {
api_ = containerInstance mila.api "" "" {
healthCheck "API is up & running" "http://localhost:5000/healthz" 60 0
}
}
deploymentNode "mongo:latest" "" "Docker" "" 1 {
url https://hub.docker.com/_/mongo
store_ = containerInstance mila.store "" "" {
}
}
}
}
}
prod_ = deploymentEnvironment "prod" {
worker1_ = deploymentGroup "Worker 01"
worker2_ = deploymentGroup "Worker 02"
ws_ = deploymentNode "Matt workstation" "" "Microsoft Windows 10" "" 1 {
browser_ = deploymentNode "Web browser" "" "Opera" "" 1 {
spa_ = containerInstance mila.spa "" "" {
}
}
}
deploymentNode "Simon workstation" "" "Microsoft Windows 10" "" 1 {
icarus_ = softwareSystemInstance icarus worker1_,worker2_ "" {
}
}
phone_ = deploymentNode "Mobile device" "" "Android" "" 1 {
mobile_ = containerInstance mila.mobile "" "" {
}
}
backend_ = deploymentNode "Backend" "" "Azure" "" 1 {
gateway_ = infrastructureNode "api.application.com" "" "Application Gateway" ""
w01_ = deploymentNode "Worker 01" "" "Azure" "" 1 {
k8s_ = deploymentNode "Orchestration" "" "Kubernetes" "" 1 {
docker_ = deploymentNode "mcr.microsoft.com/dotnet/aspnet:6.0" "" "Docker" "" 1 {
api_ = containerInstance mila.api worker1_ "#healthy" {
}
}
deploymentNode "mongo:latest" "" "Docker" "" 1 {
url https://hub.docker.com/_/mongo
store_ = containerInstance mila.store worker1_ "#blurry" {
}
}
}
}
w02_ = deploymentNode "Worker 02" "" "Azure" "" 1 {
k8s_ = deploymentNode "Orchestration" "" "Kubernetes" "" 1 {
docker_ = deploymentNode "mcr.microsoft.com/dotnet/aspnet:6.0" "" "Docker" "" 1 {
api_ = containerInstance mila.api worker2_ "#faulty" {
}
}
deploymentNode "mongo:latest" "" "Docker" "" 1 {
url https://hub.docker.com/_/mongo
store_ = containerInstance mila.store worker2_ "#healthy" {
}
}
}
}
}
prod_.phone_.mobile_ -> prod_.backend_.gateway_ "makes API call to" "" ""
prod_.ws_.browser_.spa_ -> prod_.backend_.gateway_ "makes API call to" "" ""
prod_.backend_.gateway_ -> prod_.backend_.w01_.k8s_.docker_.api_ "routes incoming calls to" "" ""
prod_.backend_.gateway_ -> prod_.backend_.w02_.k8s_.docker_.api_ "routes incoming calls to" "" ""
}
}
views {
!include theme.dslf
# !include theme-health-check.dslf
# C4.L
systemLandscape "SystemLandscape" "" {
include *
autolayout
}
# C4.1
systemContext mila "SystemContext" "" {
include *
autolayout
}
# C4.2
container mila "Container" "" {
include *
animation {
matt
mila.spa mila.mobile
mila.api
mila.store
icarus
}
autolayout
}
# C4.3
component mila.mobile "mila_mobile-4_3" "" {
include *
autolayout lr
}
# C4.W
dynamic mila "mila-workflow-mobile" "MILA mobile workflow" {
matt -> mila.mobile
mila.mobile -> mila.api
mila.api -> mila.store
autolayout lr
}
dynamic mila "mila-workflow-hybrid" "MILA hybrid workflow" {
{
matt -> mila.mobile
mila.mobile -> mila.api
mila.api -> mila.store
}
{
matt -> mila.spa
mila.spa -> mila.api
mila.api -> mila.store
}
autolayout lr
}
# C4.D
deployment * dev_ "DevDeployment" "" {
include *
autolayout lr
}
deployment * prod_ "ProdDeployment" "" {
include *
autolayout lr
}
}
}