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
The Shape of Node Architectures at Scale
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Dan Shaw
February 27, 2013
Technology
270
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
The Shape of Node Architectures at Scale
Talk given to London Node Users Group. #LNUG
Dan Shaw
February 27, 2013
More Decks by Dan Shaw
See All by Dan Shaw
Node.js and the Web Platform
dshaw
0
91
How NodeSource Uses Docker
dshaw
1
170
Node.js in the Enterprise
dshaw
7
9.9k
Moving Node.js Forward
dshaw
1
790
How Node.js Is Changing Engineering
dshaw
0
160
Node.js Now
dshaw
13
7.5k
SFHTML5 Node.js Now
dshaw
0
160
Effective Node.js Architectures
dshaw
0
290
Effective Node.js Architectures
dshaw
1
480
Other Decks in Technology
See All in Technology
モバイルアプリ開発概論2026
recruitengineers
PRO
3
490
20分でわかるセキュアAPI
nwiizo
0
180
モダンフロントエンド 開発研修
recruitengineers
PRO
3
560
老害フォレンジッカーはAI羊の夢を見るか?
tadmaddad
0
300
ガバメントクラウドでのランサムウェア対策
techniczna
2
990
トヨタ⽣産⽅式(TPS)⼊⾨
recruitengineers
PRO
2
630
Software Supply Chain Attackからクラウド環境を守るためにできること
lhazy
2
210
Sansan Engineering Unit 紹介資料
sansan33
PRO
1
4.9k
ラジオの科学
frievea
0
280
新しい SLO が良い感じにハマっている話
z63d
5
2.1k
ブラウザ研修 2026
recruitengineers
PRO
4
780
個人OSSが、机の上から世界に広がるまでの話
shinyasaita
1
370
Featured
See All Featured
A Soul's Torment
seathinner
6
3.4k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
630
A Tale of Four Properties
chriscoyier
163
24k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
10k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
380
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.5k
First, design no harm
axbom
PRO
2
1.2k
Git: the NoSQL Database
bkeepers
PRO
432
67k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.4k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
780
sira's awesome portfolio website redesign presentation
elsirapls
0
320
A Modern Web Designer's Workflow
chriscoyier
698
190k
Transcript
The Shape of Node Architectures at Scale
Daniel D. Shaw @dshaw
I like to build things with Node
Build Node Things • Storify • Spreecast • Node Knockout
• Voxer • The Node Firm
Do Less Well
FP for Distributed Architectures
What do I do? - your processes
Evolutionary Shapes • ALL THE THINGS! • Generalization • Specialization
• One Thing
ALL THE THINGS Mixture
ALL THE THINGS Easy to run, multi-process, single execution point.
Generalization Not all apps need to aspire to be the
next Facebook.
Scale Will you really need it?
Building and Planning Node.js application
Generalization • Express + Socket.io + API • Website +
API • Restify
Am I doing too much?
Trade-offs
Trade-offs • Expensive loads limit conjoined services. • Impact of
exceptions and crashes. • Deployment complexity. • Deployment isolation. • Evolve services independently.
Dumb Clusters Simple Pooling
Dumb Cluster • Static file server • Simple web sites
• Minimal client/server • API server hosts
Pooling Tools • Round Robin DNS • Varnish • Nginx
• HAProxy • ...more node
Pooling Tools • Substack - seaport, etc • Nodejitsu -
node-http-proxy • Poolee - battle tested at Voxer
Distribute Load Data store(s) have the definitive answers
Smarter Clusters Session Affinity
Sticky Sessions
Smart Clusters (Consistent Hash Rings)
Why? Complex interactions or data persistence
Properties of Consistent Hash Rings • Deterministic • Change has
minimal impact on determinism • Crunchy middle?
House of Pain Complexity
Right for the Task As simple as possible
Thank You! <3 dshaw