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
Deploying node applications at scale
Search
shikharkapoor
December 01, 2016
Technology
0
36
Deploying node applications at scale
shikharkapoor
December 01, 2016
Tweet
Share
Other Decks in Technology
See All in Technology
今日から始めるAmazon Bedrock AgentCore
har1101
4
410
OpenShiftでllm-dを動かそう!
jpishikawa
0
100
プロダクト成長を支える開発基盤とスケールに伴う課題
yuu26
4
1.3k
外部キー制約の知っておいて欲しいこと - RDBMSを正しく使うために必要なこと / FOREIGN KEY Night
soudai
PRO
12
5.4k
AzureでのIaC - Bicep? Terraform? それ早く言ってよ会議
torumakabe
1
530
Contract One Engineering Unit 紹介資料
sansan33
PRO
0
13k
Webhook best practices for rock solid and resilient deployments
glaforge
1
280
レガシー共有バッチ基盤への挑戦 - SREドリブンなリアーキテクチャリングの取り組み
tatsukoni
0
210
GitHub Issue Templates + Coding Agentで簡単みんなでIaC/Easy IaC for Everyone with GitHub Issue Templates + Coding Agent
aeonpeople
1
220
Introduction to Sansan, inc / Sansan Global Development Center, Inc.
sansan33
PRO
0
3k
M&A 後の統合をどう進めるか ─ ナレッジワーク × Poetics が実践した組織とシステムの融合
kworkdev
PRO
1
430
Codex 5.3 と Opus 4.6 にコーポレートサイトを作らせてみた / Codex 5.3 vs Opus 4.6
ama_ch
0
140
Featured
See All Featured
Discover your Explorer Soul
emna__ayadi
2
1.1k
Typedesign – Prime Four
hannesfritz
42
2.9k
Designing for humans not robots
tammielis
254
26k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
0
110
Faster Mobile Websites
deanohume
310
31k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
64
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.1k
What does AI have to do with Human Rights?
axbom
PRO
0
2k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
170
Git: the NoSQL Database
bkeepers
PRO
432
66k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
80
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
62
49k
Transcript
Deploying Node applications at scale Shikhar Kapoor (@kapoorshikhar) UI Engineer
@ Flipkart
A modern front-end engineers job Webpack React Redux Gulp Node
Angular Express GraphQL NPM MongoDB Grunt Jest Mocha
• Branching Strategies • Continuous Integration • Accelerating build times
• Packaging • Deployments • Monitoring • Testing
Branching strategies • Decide upfront and enforce them. • Master
is sacred! • Feature flags are your friends.
Mainline/Master Future Feature1 Feature2 Feature3 Long release cycles
Shorter but fixed release cycles Mainline/Master Release - week 1
Fix Feature Fix Release - week 2 Feature Feature Fix
Short cycles/ Daily deployments Mainline/Master Fix Feature 1 * Fix
Feature1 * Feature 2 * Feature 2 * * Features get pushed to master daily, with feature flags
Continuous Integration • Tools • Automate mundane tasks like linting,
unit test .. • Build on merge • Store artifacts
Pull request Run tests Tests passing? Merge/Rebase Build Fix No
Yes
Accelerate build times • Build once, promote everywhere • BUT
be careful of the gotchas • Freeze dependencies (Yarn, Shrinkwrap) • Offload mundane tasks to orchestrators
Get playbook Get hosts Start Run tasks End A typical
orchestration workflow
Packaging • How do you package and send your code
to the server? • Git clone • Archive and copy • Debian (FPM, Post Install, Versioning, easy reverts)
Deployment • Manage your environments, keep them as similar to
production as possible. • Blue-Green? Rolling? • Keep your deployment scripts close and your rollback scripts closer!
Production Cluster Blue green deployment strategy Stage Cluster Load Balancer
Production Cluster Load Balancer
Rolling deployment strategy Load balancer
Monitoring • What should you monitor? • Trends • Stack
traces/ deep dives • How do you monitor? • OpenTSDB based tools like Grafana for trends • Sentry/ NewRelic for deep dives and stack traces
Image: http://grafana.org
Testing • What to test? • Functional - Automate critical
flows. • Unit tests • Non-functional • Capacity testing and API Fanout • Performance • RUM / Synthetic - SpeedCurve, Dareboost
Key takeaways
Thank you! @kapoorshikhar