stuff i do - janos pasztor · glb.techblog.cloud. in alias us-west-1.glb.techblog.cloud. hosting...
TRANSCRIPT
![Page 1: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/1.jpg)
![Page 2: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/2.jpg)
Stuff I do
![Page 3: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/3.jpg)
Follow me!
https://pasztor.at
@janoszen
![Page 4: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/4.jpg)
About this talk
1. The problem with CDNs
![Page 5: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/5.jpg)
About this talk
1. The problem with CDNs
2. How does a CDN work?
![Page 6: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/6.jpg)
About this talk
1. The problem with CDNs
2. How does a CDN work?
3. Static content CDN
![Page 7: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/7.jpg)
About this talk
1. The problem with CDNs
2. How does a CDN work?
3. Static content CDN
4. Hosting dynamic content
![Page 8: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/8.jpg)
Assumptions
You know what HTTP is.
![Page 9: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/9.jpg)
Assumptions
You know what HTTP is.
You know what a DNS is.
![Page 10: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/10.jpg)
Assumptions
You know what HTTP is.
You know what a DNS is.
You know what a CDN is.
![Page 11: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/11.jpg)
Warning!
Don’t do this at home!This is as experimental as it gets.
![Page 12: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/12.jpg)
The problem with CDNs
Low-traffic sites don’t work well with a CDN
![Page 13: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/13.jpg)
The problem with CDNs
![Page 14: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/14.jpg)
The problem with CDNs
![Page 15: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/15.jpg)
The problem with CDNs
![Page 16: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/16.jpg)
The problem with CDNs
![Page 17: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/17.jpg)
The problem with CDNs
![Page 18: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/18.jpg)
The problem with CDNs
![Page 19: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/19.jpg)
The problem with CDNs
![Page 20: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/20.jpg)
The problem with CDNs
![Page 21: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/21.jpg)
The problem with CDNs
![Page 22: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/22.jpg)
The problem with CDNs
User CDN Origin
GET /avatar.jpg
Cache
![Page 23: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/23.jpg)
The problem with CDNs
User CDN Origin
GET /avatar.jpg
Cache
![Page 24: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/24.jpg)
The problem with CDNs
User CDN Origin
GET /avatar.jpg
Cache
GET /avatar.jpg
![Page 25: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/25.jpg)
The problem with CDNs
User CDN OriginCache
GET /avatar.jpg
GET /avatar.jpg
![Page 26: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/26.jpg)
The problem with CDNs
User CDN Origin
GET /avatar.jpg
Cache
GET /avatar.jpg
![Page 27: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/27.jpg)
The problem with CDNs
User CDN OriginCache
GET /avatar.jpg
![Page 28: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/28.jpg)
The problem with CDNs
User CDN OriginCache
~30-40 ms ~160 ms
![Page 29: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/29.jpg)
The problem with CDNs
User CDN OriginCache
~30-40 ms ~160 ms
~30-40 ms~10 ms
![Page 30: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/30.jpg)
The problem with CDNs
User CDN OriginCache
~30-40 ms ~160 ms
~160 ms
~30-40 ms~10 ms
![Page 31: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/31.jpg)
The problem with CDNs
User CDN OriginCache
~30-40 ms ~160 ms
~160 ms~160 ms
~200 ms
~50 ms~30-40 ms
~10 ms
![Page 32: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/32.jpg)
The problem with CDNs
Workaround:
![Page 33: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/33.jpg)
The problem with CDNs
Workaround:
Cache-Control: s-maxage=31536000
![Page 34: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/34.jpg)
The problem with CDNs
Caveat:
All files must have unique URLs!
Does not always work.
![Page 35: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/35.jpg)
How do CDNs work?
Locating the properedge node
![Page 36: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/36.jpg)
How do CDNs work?
User
CDN POP in Europe CDN POP in the USA
![Page 37: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/37.jpg)
How do CDNs work?
User
CDN POP in Europe CDN POP in the USA
![Page 38: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/38.jpg)
How do CDNs work?
User
CDN POP in Europe CDN POP in the USA
![Page 39: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/39.jpg)
How do CDNs work?
User
CDN POP in Europe CDN POP in the USA
![Page 40: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/40.jpg)
How do CDNs work?
User
CDN POP in Europe CDN POP in the USA
![Page 41: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/41.jpg)
How do CDNs work?
User
CDN POP in Europe CDN POP in the USA
![Page 42: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/42.jpg)
How do CDNs work?
User
CDN POP in Europe CDN POP in the USA
I have 1.2.3.4!
![Page 43: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/43.jpg)
How do CDNs work?
User
CDN POP in Europe CDN POP in the USA
I have 1.2.3.4!
![Page 44: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/44.jpg)
How do CDNs work?
User
CDN POP in Europe CDN POP in the USA
I have 1.2.3.4!
![Page 45: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/45.jpg)
How do CDNs work?
User
CDN POP in Europe CDN POP in the USA
1.2.3.4
![Page 46: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/46.jpg)
How do CDNs work?
User
CDN POP in Europe CDN POP in the USA
1.2.3.4
I have 1.2.3.4!
![Page 47: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/47.jpg)
How do CDNs work?
User
CDN POP in Europe CDN POP in the USA
1.2.3.4
I have 1.2.3.4!
![Page 48: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/48.jpg)
How do CDNs work?
User
CDN POP in Europe CDN POP in the USA
1.2.3.4I have 1.2.3.4!
![Page 49: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/49.jpg)
How do CDNs work?
User
CDN POP in Europe CDN POP in the USA
1.2.3.4
I have 1.2.3.4!
![Page 50: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/50.jpg)
How do CDNs work?
User
CDN POP in Europe CDN POP in the USA
1.2.3.4
I have 1.2.3.4!
![Page 51: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/51.jpg)
How do CDNs work?
User
CDN POP in Europe CDN POP in the USA
1.2.3.4
I have 1.2.3.4!
![Page 52: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/52.jpg)
How do CDNs work?
User
CDN POP in Europe CDN POP in the USA
1.2.3.4
1.2.3.4
![Page 53: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/53.jpg)
How do CDNs work?
User
CDN POP in Europe CDN POP in the USA
1.2.3.4
1.2.3.4
3 hops
6 hops
![Page 54: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/54.jpg)
How do CDNs work?
User
CDN POP in Europe CDN POP in the USA1.2.3.4 1.2.3.4
![Page 55: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/55.jpg)
How do CDNs work?
User
CDN POP in Europe CDN POP in the USA1.2.3.4 1.2.3.410.1.0.1 10.2.0.1
![Page 56: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/56.jpg)
How do CDNs work?
User
CDN POP in Europe CDN POP in the USA1.2.3.4 1.2.3.410.1.0.1 10.2.0.1
What is the IP for pasztor.at?
![Page 57: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/57.jpg)
How do CDNs work?
User
CDN POP in Europe CDN POP in the USA1.2.3.4 1.2.3.410.1.0.1 10.2.0.1
10.1.0.1
![Page 58: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/58.jpg)
How do CDNs work?
User
CDN POP in Europe CDN POP in the USA
Anycast is ONLY used for DNS lookups!
See https://engineering.linkedin.com/network-performance/tcp-over-ip-anycast-pipe-dream-or-reality
![Page 59: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/59.jpg)
Hosting static content
Part 1:Finding a DNS provider
![Page 60: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/60.jpg)
Hosting static content
Anycast servers
![Page 61: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/61.jpg)
Hosting static content
Anycast servers
Latency- or GeoIP based responses
![Page 62: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/62.jpg)
✓
✓
Hosting static content
Anycast servers
Latency- or GeoIP based responses
![Page 63: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/63.jpg)
Hosting static content
eu-central-1.glb.techblog.cloud. IN A 18.194.241.96
us-east-1.glb.techblog.cloud. IN A 54.152.113.29
us-west-1.glb.techblog.cloud. IN A 52.9.244.13
![Page 64: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/64.jpg)
Hosting static content
eu-central-1.glb.techblog.cloud. IN A 18.194.241.96
us-east-1.glb.techblog.cloud. IN A 54.152.113.29
us-west-1.glb.techblog.cloud. IN A 52.9.244.13
glb.techblog.cloud. IN ALIAS eu-central-1.glb.techblog.cloud.
glb.techblog.cloud. IN ALIAS us-east-1.glb.techblog.cloud.
glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud.
![Page 65: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/65.jpg)
Hosting static content
![Page 66: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/66.jpg)
Hosting static content
Part 2:Docker
![Page 67: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/67.jpg)
Hosting static content
us-west-1 us-east-1 eu-central-1
EC2 instance My laptopEC2 instanceEC2 instance
![Page 68: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/68.jpg)
Hosting static content
us-west-1 us-east-1 eu-central-1
EC2 instance
ECS AGENT
My laptop
ECSECSECS
EC2 instance
ECS AGENT
EC2 instance
ECS AGENT
![Page 69: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/69.jpg)
Hosting static content
us-west-1 us-east-1 eu-central-1
EC2 instance
ECS AGENT
WEB SERVER
My laptop
ECSECSECS
EC2 instance
ECS AGENT
WEB SERVER
EC2 instance
ECS AGENT
WEB SERVER
![Page 70: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/70.jpg)
Hosting static content
us-west-1 us-east-1 eu-central-1
EC2 instance
ECS AGENT
WEB SERVER
My laptop
ECSECSECS
EC2 instance
ECS AGENT
WEB SERVER
EC2 instance
ECS AGENT
WEB SERVER
ECR
![Page 71: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/71.jpg)
Hosting static content
us-west-1 us-east-1 eu-central-1
EC2 instance
ECS AGENT
WEB SERVER
My laptop
ECRECSECSECS
EC2 instance
ECS AGENT
WEB SERVER
EC2 instance
ECS AGENT
WEB SERVER
Docker Image
Webserver Content
![Page 72: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/72.jpg)
Hosting static content
us-west-1 us-east-1 eu-central-1
EC2 instance
ECS AGENT
WEB SERVER
My laptop
ECRECSECSECS
EC2 instance
ECS AGENT
WEB SERVER
EC2 instance
ECS AGENT
WEB SERVER
Docker Image
![Page 73: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/73.jpg)
Hosting static content
us-west-1 us-east-1 eu-central-1
EC2 instance
ECS AGENT
WEB SERVER
My laptop
ECSECSECS
EC2 instance
ECS AGENT
WEB SERVER
EC2 instance
ECS AGENT
WEB SERVER
Docker Image
ECR
![Page 74: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/74.jpg)
Hosting static content
us-west-1 us-east-1 eu-central-1
EC2 instance
ECS AGENT
WEB SERVER
My laptop
ECRECSECSECS
EC2 instance
ECS AGENT
WEB SERVER
EC2 instance
ECS AGENT
WEB SERVER
![Page 75: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/75.jpg)
Hosting static content
us-west-1 us-east-1 eu-central-1
EC2 instance
WEB SERVER
My laptop
ECR
EC2 instance
WEB SERVER
EC2 instance
WEB SERVER
ECS AGENT
ECSECSECS
ECS AGENT
ECS AGENT
![Page 76: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/76.jpg)
Hosting static content
us-west-1 us-east-1 eu-central-1
EC2 instance
WEB SERVER
My laptop
ECSECSECS
EC2 instance
WEB SERVER
EC2 instance
WEB SERVER
ECS AGENT
ECR
ECS AGENT
ECS AGENT
![Page 77: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/77.jpg)
Hosting static content
us-west-1 us-east-1 eu-central-1
EC2 instance
ECS AGENT
WEB SERVER
My laptop
ECRECSECSECS
EC2 instance
ECS AGENT
WEB SERVER
EC2 instance
ECS AGENT
WEB SERVER
![Page 78: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/78.jpg)
Hosting dynamic content
Can it run Wordpress?
![Page 79: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/79.jpg)
Hosting dynamic content
us-west-1 us-east-1 eu-central-1
EC2 instanceEC2 instanceEC2 instance
![Page 80: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/80.jpg)
Hosting dynamic content
us-west-1 us-east-1 eu-central-1
EC2 instanceEC2 instanceEC2 instance
INTERNET
![Page 81: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/81.jpg)
Hosting dynamic content
us-west-1 us-east-1 eu-central-1
EC2 instanceEC2 instanceEC2 instance
INTERNET
Docker Swarm Overlay Network
![Page 82: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/82.jpg)
Hosting dynamic content
us-west-1 us-east-1 eu-central-1
EC2 instanceEC2 instanceEC2 instance
INTERNET
WEB SERVER
WEB SERVER
WEB SERVER
![Page 83: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/83.jpg)
Hosting dynamic content
us-west-1 us-east-1 eu-central-1
EC2 instanceEC2 instanceEC2 instance
INTERNET
WEB SERVER
WEB SERVER
WEB SERVERGALERA GALERA GALERA
![Page 84: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/84.jpg)
Hosting dynamic content
![Page 85: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/85.jpg)
Hosting dynamic content
Unsolved issues:
![Page 86: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/86.jpg)
Hosting dynamic content
Unsolved issues:
Distributing Static Content
![Page 87: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/87.jpg)
Hosting dynamic content
Unsolved issues:
Distributing Static Content
Downtime-less Updates
![Page 88: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/88.jpg)
Hosting dynamic content
Unsolved issues:
Distributing Static Content
Downtime-less Updates
Monitoring
![Page 89: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/89.jpg)
Summary
Is it worth it?
![Page 90: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/90.jpg)
Summary
![Page 91: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/91.jpg)
Summary
![Page 92: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/92.jpg)
Summary
![Page 93: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/93.jpg)
Summary
![Page 94: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/94.jpg)
Summary
Probably not.
![Page 95: Stuff I do - Janos Pasztor · glb.techblog.cloud. IN ALIAS us-west-1.glb.techblog.cloud. Hosting static content Hosting static content Part 2: Docker Hosting static content us-west-1](https://reader037.vdocuments.net/reader037/viewer/2022090603/6055791052eac02a893e1d6a/html5/thumbnails/95.jpg)
Summary
Questions?
Many thanks to
Bence Sántha, Dan Radenković, Gábor Vereb, János Angeli, Krisztián Papp
for their inspiration and feedback.