Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
CDN for your rails assets
Search
Edgar Suarez
June 09, 2013
Programming
0
100
CDN for your rails assets
lightning talk @ HackerGarage June 13rd
Edgar Suarez
June 09, 2013
Tweet
Share
Other Decks in Programming
See All in Programming
Webアプリをできるだけコードを手書きしないで作ってみる
tomokusaba
2
190
AWS CDKコントリビュートTIPS / aws-cdk-contribution-tips
gotok365
4
410
AmperとFleetを使ったAndroidアプリ
yoppie
0
260
Azure OpenAI Serviceのプロンプトエンジニアリング入門
tomokusaba
3
910
Goのエラースタックトレースの歴史と今後
sonatard
10
1.8k
Domain-Driven Transformation
hschwentner
2
1.5k
Anthropic Cookbook のおすすめレシピ
schroneko
7
1.3k
if constexpr文はテンプレート世界のラムダ式である
faithandbrave
3
690
禅の心を手に入れよ
eltociear
1
410
Site Reliability Engineering for GMO
pyama86
8
1.1k
敵対的ポイフル
futabato
0
140
Implementing Design Systems in Swift
seyfoyun
2
480
Featured
See All Featured
4 Signs Your Business is Dying
shpigford
176
21k
Clear Off the Table
cherdarchuk
85
310k
Ruby is Unlike a Banana
tanoku
96
10k
Designing the Hi-DPI Web
ddemaree
276
33k
KATA
mclloyd
16
12k
Faster Mobile Websites
deanohume
300
30k
Raft: Consensus for Rubyists
vanstee
133
6.3k
Docker and Python
trallard
35
2.7k
10 Git Anti Patterns You Should be Aware of
lemiorhan
649
58k
The Brand Is Dead. Long Live the Brand.
mthomps
49
29k
Product Roadmaps are Hard
iamctodd
45
9.8k
Being A Developer After 40
akosma
67
580k
Transcript
CDN FOR YOUR RAILS ASSETS @edgarjs Sunday, June 9, 13
STATIC FILES .js .css .png .jpg .gif .html .txt, etc...
Sunday, June 9, 13
WWW WORLD wide web Sunday, June 9, 13
LATENCY wait... time Sunday, June 9, 13
Sunday, June 9, 13
STAY CLOSE to your friends, and closer to your users
Sunday, June 9, 13
Sunday, June 9, 13
3RD PARTY OR DIY Amazon CloudFront, CloudFlare, Rackspace Sunday, June
9, 13
Sunday, June 9, 13
HELPERS all the time Sunday, June 9, 13
link_to image_tag asset_path Sunday, June 9, 13
DEVELOPMENT <%= image_tag ‘hello.png’ %> <img src=”/assets/hello.png”> Sunday, June 9,
13
PRODUCTION <%= image_tag ‘hello.png’ %> <img src=”http://assets.example.com/assets/hello.png”> Sunday, June 9,
13
FOR THE ROAD... Sunday, June 9, 13
PERSISTENT CONNECTIONS to the server Sunday, June 9, 13
HTTP/1.1 RFC [8.1.4] [...]a single-user client should not maintain more
than 2 connections with any server or proxy[...] Sunday, June 9, 13
Browser HTTP/1.1 IE 6,7 2 IE 8 6 Firefox 2
2 Firefox 3 6 Safari 3,4 4 Chrome 1,2 6 Chrome 3 4 Chrome 4+ 6 iPhone 2 4 iPhone 3 6 iPhone 4 4 Opera 9.63,10.00a 4 Opera 10.51+ 8 Sunday, June 9, 13
assets0.example.com assets1.example.com assets2.example.com assets3.example.com Sunday, June 9, 13