-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathworkspace.dsl
139 lines (106 loc) · 4.35 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
workspace "Web Application Ecosystem" "" {
!identifiers hierarchical
!impliedRelationships false
model {
wa = softwareSystem "Web App" "Javascript-based frontend, python-based backend." "" {
spa = container "SPA" "" "Angular" "" {
}
server = container "Server" "" "Python" "" {
}
spa -> server "" "" ""
server -> spa "" "" ""
}
ws = softwareSystem "Web Server" "Blazor Server provides support for hosting Razor components on the server in an ASP.NET Core app. UI updates are handled over a SignalR connection." "" {
url https://docs.microsoft.com/en-us/aspnet/core/blazor/?view=aspnetcore-6.0#blazor-server
web = container "Blazor Server" "Hosts Razor components on the server in an ASP.NET Core app. Executes business logic." "AspNetCore" "" {
}
}
wasm = softwareSystem "Web Assembly" "Blazor WebAssembly is a single-page app (SPA) framework for building interactive client-side web apps with .NET." "" {
url https://docs.microsoft.com/en-us/aspnet/core/blazor/?view=aspnetcore-6.0#blazor-webassembly
spa = container "Blazor WASM" "Runs .NET code inside browser thanks to wasm. " "AspNetCore" "" {
}
}
wa_ = deploymentEnvironment "WebApp" {
laptop_ = deploymentNode "Laptop" "" "Windows 10" "#windows" 1 {
browser_ = infrastructureNode "Browser" "Lorem ipsum dolor sit amet, consectetur adipiscing elit." "Opera" "#opera, #web"
}
azure_ = deploymentNode "Azure" "" "Azure" "#azure" 1 {
front_ = deploymentNode "nginx:1.23.3" "" "Docker" "#docker" 1 {
spa_ = containerInstance wa.spa "" "" {
}
}
back_ = deploymentNode "python:3.9.16" "" "Docker" "#docker" 1 {
server_ = containerInstance wa.server "" "" {
}
}
}
laptop_.browser_ -> azure_.front_ "connects to" "" ""
}
ws_ = deploymentEnvironment "WebServer" {
laptop_ = deploymentNode "Laptop" "" "Windows 10" "#windows" 1 {
browser_ = infrastructureNode "Browser" "Lorem ipsum dolor sit amet, consectetur adipiscing elit." "Opera" "#opera, #web"
}
azure_ = deploymentNode "Azure" "" "Azure" "#azure" 1 {
docker_ = deploymentNode "mcr.microsoft.com/dotnet/aspnet:7.0" "" "Docker" "#docker" 1 {
web_ = containerInstance ws.web "" "" {
}
}
}
laptop_.browser_ -> azure_.docker_ "serves" "SignalR" ""
}
wasm_ = deploymentEnvironment "WebAssembly" {
laptop_ = deploymentNode "Laptop" "" "Windows 10" "#windows" 1 {
spa_ = containerInstance wasm.spa "" "#web" {
}
}
}
wasm2_ = deploymentEnvironment "WebAssembly2" {
laptop_ = deploymentNode "Laptop" "" "Windows 10" "#windows" 1 {
browser_ = infrastructureNode "Browser" "Lorem ipsum dolor sit amet, consectetur adipiscing elit." "Opera" "#opera, #web"
}
azure_ = deploymentNode "Azure" "" "Azure" "#azure" 1 {
docker_ = deploymentNode "io.containerd.wasmedge.v1 | wasi/wasm32" "" "Docker+WASM" "#docker" 1 {
spa_ = containerInstance wasm.spa "" "" {
}
}
}
laptop_.browser_ -> azure_.docker_ "connects to" "" ""
}
hub_ = deploymentEnvironment "Hub" {
laptop_ = deploymentNode "Laptop" "" "Windows 10" "#windows" 1 {
browser_ = infrastructureNode "Browser" "Lorem ipsum dolor sit amet, consectetur adipiscing elit." "Opera" "#opera, #web"
}
azure_ = deploymentNode "Azure" "" "Azure" "#azure" 1 {
lb_ = infrastructureNode "Load Balancer" "Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." "Azure Network Load Balancer" "#balancer"
wa_ = softwareSystemInstance wa "" "" {
}
ws_ = softwareSystemInstance ws "" "" {
}
lb_ -> wa_ "balances across" "" ""
lb_ -> ws_ "balances across" "" ""
}
laptop_.browser_ -> azure_.lb_ "connects to" "" ""
}
}
views {
theme https://raw.githubusercontent.com/rvr06/cornifer-contrib/main/themes/semantic-alt/theme.json
systemLandscape "Landscape" "" {
include *
}
deployment * hub_ "HubDeployment" "" {
include *
}
deployment * wa_ "WebAppDeployment" "" {
include *
}
deployment * ws_ "WebServerDeployment" "" {
include *
}
deployment * wasm_ "WebAssemblyDeployment" "" {
include *
}
deployment * wasm2_ "WebAssemblyDeployment2" "" {
include *
}
}
}