-
Notifications
You must be signed in to change notification settings - Fork 0
/
poster.typ
295 lines (261 loc) · 7.1 KB
/
poster.typ
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
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
#import "@preview/fletcher:0.4.2" as fletcher: node, edge
#import "@preview/t4t:0.3.2": *
#import "@preview/cades:0.3.0": qr-code
#let stevens-red = rgb(160, 1, 42)
#let stevens-gray = rgb(127, 129, 130)
#set par(
justify: true,
leading: 0.60em,
)
#set page(
footer: [
#set align(horizon)
#line(length: 100%, stroke: stevens-gray + 3pt)
#stack(
dir: ltr,
image("expo/branding/stevens-logo.svg", width: 7.25in - 1.25in),
h(1fr),
image("expo/branding/expo-logo.svg", width: 22.88in - 15.75in)
)
],
width: 24in,
height: 36in,
margin: (
rest: 1in,
bottom: 4in,
),
)
#set text(
size: 30pt,
font: "Saira",
)
#set figure(supplement: none)
#show heading.where(level: 1): it => [
#set text(
size: 135pt,
weight: 600,
fill: stevens-red,
stretch: 75%,
)
#block(smallcaps(it.body))
]
#show heading.where(level: 2): it => [
#set align(center)
#set text(
size: 48pt,
weight: "bold",
fill: stevens-red,
)
#block(smallcaps(it.body))
]
#let icon(icon, subicon: none, size: 4in, label: none) = {
let width = size
let height = size
if type(size) == array {
width = size.at(0)
height = size.at(1)
}
box(
width: width,
height: height,
)[
#image(
icon,
width: 100%,
height: 100%
)
#if subicon != none {
place(
bottom + right,
dx: 0.3in,
dy: 0.3in,
)[
#circle(
fill: white,
width: width / 2,
height: width / 2,
stroke: none,
place(
center + horizon,
image(
subicon,
width: width / 2,
height: width / 2
)
)
)
]
}
#if label != none {
set align(center + horizon)
set text(size: width / 8)
label
}
]
}
#let server(status_icon, size: 4in, label: none) = {
icon(
"expo/icons/dns.svg",
subicon: status_icon,
size: size,
label: label,
)
}
#let server-on-fire = server("expo/icons/emergengy-heat.svg", size: 2.5in, label: [Application])
#let server-healthy = server("expo/icons/check-circle.svg", size: 1.5in, label: [Application])
#let server-balancer = server("expo/icons/balance.svg", size: 2in, label: [Load Balancer])
#let users = icon("expo/icons/groups.svg", size: (2.5in, 1.5in), label: [Lots of Users])
#let spread-edges(count, width: 0.4, offset: 0) = {
range(count).map(i => {
let y = offset + math.lerp(-width/2, width/2, i / (count - 1))
edge((0, y), (1, y), "-|>")
})
}
#let users-outset = 0.3in
#let draw-single() = {
fletcher.diagram(
edge-stroke: 0.1in,
spacing: 3in,
mark-scale: 65%,
node((0, 0), [#users], outset: users-outset, shape: rect),
..spread-edges(4, width: 0.3),
node((1, 0), [#server-on-fire], shape: rect),
)
}
#let draw-balanced() = {
fletcher.diagram(
edge-stroke: 0.1in,
spacing: (3in, 0in),
mark-scale: 65%,
node((0, 1), [#users], outset: users-outset, shape: rect),
..spread-edges(4, width: 0.7, offset: 1),
node((1, 1), [#server-balancer], outset: 0.3in, shape: rect),
edge((1, 1), (2, 0), "-|>", bend: 20deg),
edge((1, 1), (2, 1), "-|>"),
edge((1, 1), (2, 2), "-|>", bend: -20deg),
node((2, 0), server-healthy, shape: rect),
node((2, 1), server-healthy, shape: rect),
node((2, 2), server-healthy, shape: rect),
)
}
#let ott = icon("expo/icons/ott-logo.svg", size: 2in, label: [OTT])
#let tv = icon("expo/icons/live-tv.svg", size: 1in)
#let person = icon("expo/icons/person.svg", size: 1in)
#let draw-ott() = {
set text(size: 24pt)
let people = range(3).map(i => (i, 1))
let diag = fletcher.diagram(
edge-stroke: 0.05in,
spacing: (0.25in, 1.5in),
mark-scale: 50%,
node-inset: 0in,
node((1, 0), [#ott]),
..people.map(p => node(p, [
#stack(tv, person, spacing: 0in)
])),
..people.map(p => edge(p, (1, 0), "<|-|>",
label: [Sync],
label-fill: white,
label-anchor: "center",
)),
)
box(
stroke: black + 4pt,
inset: 0.5in,
diag,
)
}
#let draw-horizontal-vs-vertical() = {
set text(size: 24pt)
set align(horizon + center)
let server-little = icon("expo/icons/dns.svg", size: 1in)
let server-big = icon("expo/icons/dns.svg", size: 1.8in)
let vertical = fletcher.diagram(
edge-stroke: 0.05in,
spacing: 1.5in,
mark-scale: 50%,
node((0, 0), [#server-little], shape: rect),
edge((0, 0), (1, 0), "-|>", label: [Scale Up]),
node((1, 0), [#server-big], shape: rect),
)
let horizontal = fletcher.diagram(
edge-stroke: 0.05in,
spacing: 1.5in,
mark-scale: 50%,
node((0, 0), [#server-little], shape: rect),
edge((0, 0), (1, 0), "-|>", label: [Scale Up]),
..range(3).map(i => {
let y = math.lerp(-0.5, 0.5, i / 2)
node((1, y), [#server-little], shape: rect)
}),
..range(3).map(i => {
let y = math.lerp(-0.5, 0.5, i / 2)
node((1.5, y), [#server-little], shape: rect)
}),
)
stack(
dir: ltr,
h(1fr),
figure(
vertical,
caption: figure.caption([Vertical Scaling], position: top)
),
h(1fr),
figure(
horizontal,
caption: figure.caption([Horizontal Scaling], position: top)
),
h(1fr),
)
}
#align(
horizon,
stack(dir: ltr,
heading([OTT Load Balancer]),
h(1fr),
// TODO: maybe have this point to something we can change the redirect of later
qr-code(width: 135pt, color: stevens-red, "https://expo.opentogethertube.com"),
)
)
#align(
horizon,
stack(
dir: ltr,
line(length: 100% - 1in, stroke: stevens-red + 3pt),
h(0.2in),
image("expo/branding/stevens-star.svg", width: 0.8in)
)
)
#text(
size: 48pt,
)[
*Victor Giraldo, Carson McManus, Michael Moreno, Christopher Roddy* \
Software Engineering Department, Advised by Prof. Darian Muresan
]
#grid(
rows: (auto, auto),
row-gutter: 0.5in,
columns(2)[
== Unlocking Scalability for Stateful Applications
- Our project's goal is to build a load balancer for stateful applications to allow legacy systems to scale horizontally.
- Horizontal scaling refers to adding additional nodes, while vertical scaling is adding more power to current machines.
- OTT's userbase is steadily expanding, and the current infrastructure is incapable of accommodating the anticipated growth. Horizontal scaling is not possible due to the applications' stateful nature.
#draw-horizontal-vs-vertical()
#colbreak()
== Proof of Concept (OTT)
- OpenTogetherTube (OTT) is a website that allows users to watch videos together.
- Implementation of the load balancer will allow an application to be deployed around the world, lower latency for users, improve reliability, and allow for a larger number of simultaneous users.
- The load balancer allows for the allocation of rooms across multiple servers, preserving the seamless synchronization of state to users anywhere in the world.
#figure(
draw-ott(),
caption: figure.caption([Users in a Room watching a video], position: top)
)
],
[
#set align(center)
#text(size: 40pt, [Before])
#draw-single()
#text(size: 40pt, [After])
#draw-balanced()
],
)