-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
284 lines (255 loc) · 8.51 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
/>
<title>Microservices versus Django</title>
<link rel="stylesheet" href="css/reset.css" />
<link rel="stylesheet" href="css/reveal.css" />
<link rel="stylesheet" href="css/theme/moon.css" />
<!-- Theme used for syntax highlighting of code -->
<link rel="stylesheet" href="lib/css/monokai.css" />
<!-- Printing and PDF exports -->
<script>
var link = document.createElement("link");
link.rel = "stylesheet";
link.type = "text/css";
link.href = window.location.search.match(/print-pdf/gi)
? "css/print/pdf.css"
: "css/print/paper.css";
document.getElementsByTagName("head")[0].appendChild(link);
</script>
</head>
<body>
<div class="reveal">
<div class="slides">
<section>
<h1>Microservices versus Django</h1>
<h2>patterns and antipatterns</h2>
<a href="https://sheenarbw.github.io/pres-django-vs-microservices/">
https://sheenarbw.github.io/pres-django-vs-microservices/
</a>
</section>
<section>
<h2>Me :)</h2>
<a href="mailto:sheena.oconnell@umuzi.org">
sheena.oconnell@umuzi.org
</a>
<table>
<tr>
<td></td>
<td>
<ul>
<li>Been coding for over 10 years</li>
<li>I heart Python</li>
<li>Working at Umuzi</li>
<li>Have my own small dev house</li>
<li>
<a
href="https://www.codementor.io/sheena?referral=sheena-kvo1e6ewh"
>CodementorX</a
>
developer and writer
</li>
</ul>
</td>
</tr>
</table>
<div style="float: center">
<img src="images/umuzi.png" height="75" style="margin-right:100;" />
<a
href="https://www.codementor.io/freelance-developers/python?utm_source=certified_badge&referral=sheena-kvo1e6ewh"
rel="noopener"
><img
src="https://assets.codementor.io/cmx-dev-badge.svg"
height="75"
/></a>
<a href="mailto:sheena@prelude.tech">
<img src="images/Color logo with background.png" height="75" />
</a>
</div>
</section>
<section>
<h2>Contents</h2>
<ul>
<li>What's Django?</li>
<li>What are Microservices?</li>
<li>Pros and pitfalls</li>
<li>A few antipatterns</li>
</ul>
</section>
<section>
<section>
<h2>What's Django</h2>
<ul>
<li>Python web framework</li>
<li>Batteries Included</li>
<li>Opinionated</li>
<li>Secure, scalable, fast</li>
<li>
<a
href="https://www.linkedin.com/pulse/top-10-sites-built-django-framework-vladimir-bogdanov"
>Trusted by industry</a
>
</li>
</ul>
</section>
<section>
<img src="images/django anatomy 1.png" />
</section>
<section>
<img src="images/django anatomy 2.png" />
</section>
</section>
<section>
<section>
<h2>What are Microservices</h2>
besides fashionable?
</section>
<section>
<h2>Let's imagine...Webflix</h2>
You have an application that handles
<ul>
<li>distributing large volumes of videos</li>
<li>authentication, authorization</li>
<li>Managing customer information</li>
<li>communicating with customer</li>
<li>keeping track of payments and subscriptions</li>
<li>keeping track of who has seen which video</li>
<li>making recommendations</li>
<li>...and a whole lot more</li>
</ul>
</section>
<section>
<img src="images/webflix1.png" />
</section>
<section>
<ul>
<li>Each service is its own application</li>
<li>Can be different languages</li>
<li>Can have different databases</li>
<li>communication can be handled in different ways</li>
<li>updated independently</li>
<li>scaled independently</li>
</ul>
</section>
<section>
<img src="images/webflix-signups.png" />
</section>
</section>
<section>
<section>
<h2>
Real life microservices
</h2>
<img src="images/amazon and netflix.png" height="250" />
<a href="https://www.appcentrica.com/the-rise-of-microservices/"
>https://www.appcentrica.com/the-rise-of-microservices/</a
>
</section>
<section>
<h2>Why do this to yourself?</h2>
<ul>
<li>Lots of independent teams</li>
<li>Need independent and rapid scaling of compute resources</li>
<li>Rapid deployment and rollback of small changes</li>
<li>helps to enforce loose coupling</li>
<li>self healing</li>
<li>make you 10% cooler</li>
</ul>
</section>
<section>
<h2>(some) Pitfalls</h2>
<ul>
<li>NEED CI/CD to be done well</li>
<li>unit testing gets tricky. Mock all the things</li>
<li>integration testing becomes tricky</li>
<li>saturation testing becomes necessary</li>
<li>
networks aren't perfect: messages get dropped, delayed, replayed
</li>
<li>Observability is hard</li>
<li>
more distributed and complex system => more time spent debugging
production system (== technical debt)
</li>
<li>Hard to know effect of simultaneous faults</li>
</ul>
</section>
</section>
<section>
<section>
<h2>
A few antipatterns
</h2>
</section>
<section>
<h2>
Monolithic data
</h2>
<img src="images/monolithic data.png" />
</section>
<section>
<h2>
Better than monolithic data
</h2>
<img src="images/monolithic data2.png" />
</section>
<section>
<h2>
Shared code/libraries
</h2>
<img src="images/shared-lib.png" />
</section>
<section>
<h2>Anaemic services</h2>
<img src="images/anemic.png" />
</section>
<section>
<h2>
Frankenstein's (Agile) monster
</h2>
<img src="images/anarchy.png" />
</section>
</section>
<section>
<h2>
</PRESENTATION>
</h2>
<ul>
<li>
<a
href="https://www.codementor.io/sheena/hello-microservice-deployment-part-1-docker-kw9ejpd9o?referral=sheena-kvo1e6ewh"
>Hello Microservices deployment tutorial</a
>
</li>
<li>
<a
href="https://sheenarbw.github.io/pres-django-vs-microservices/"
>
https://sheenarbw.github.io/pres-django-vs-microservices/
</a>
</li>
</ul>
</section>
</div>
</div>
<script src="js/reveal.js"></script>
<script>
// More info about config & dependencies:
// - https://github.com/hakimel/reveal.js#configuration
// - https://github.com/hakimel/reveal.js#dependencies
Reveal.initialize({
dependencies: [
{ src: "plugin/markdown/marked.js" },
{ src: "plugin/markdown/markdown.js" },
{ src: "plugin/notes/notes.js", async: true },
{ src: "plugin/highlight/highlight.js", async: true }
]
});
</script>
</body>
</html>