SlideShare a Scribd company logo
Node @ Flipkart 
Abhinav Rastogi 
@_abhinavrastogi
!jQuery 
If you think jQuery is the answer, 
you lose a cookie and get an F grade!
Node @ flipkart
Node @ flipkart
Picking one is difficult! 
Plus its never exactly what you need
How we built a web stack 
in Node... 
It’s really not that difficult
Node in Production 
Now this is a different story altogether
Philosophy 
A web stack to build rich UIs for the next generation, 
embracing progressive enhancement.
Request 
Session API 
JSON 
Rendering 
Templates 
Response 
Cart API 
Search API 
Product API 
Promises 
HTML
Why Node? 
And that too in production? :O
Parallel, Async 
Huge benefit right there over conventional stacks
Light weight 
Best available JS execution env
Good community 
Buzzing like a beehive
“There’s a module 
for that” 
No, there really is.
Challenges we faced 
(So many of them!)
Code Maintainability 
What does it really mean?
Klass, Lodash 
For classy code B-)
High Availability 
As they say, 99.99% uptime guaranteed! 
But is it really?
Keep that process running 
Forever 
PM2 
Shell Script!
Testability 
Ugh… test cases :(
Test it! 
Mocha, Chai, Istanbul
Performance 
So much to do… so little time
Profile it. 
Look, DTrace, Event Loop
Code Reusability 
Not just modules, but so much more now
Components 
CommonJS
Templating 
Jade, Handlebars, Underscore
ReactJS 
Does all that, and more
Write once, 
run anywhere! 
Sh*t... that sounds like Java
Rendering on Server 
Cacheable 
Reliable 
SEO friendly 
Optimised First Paint
Rendering on Client 
Less load on server 
Perceived Performance 
Rich UIs
Whoa.. easy there 
Logging 
Env specific code 
External HTTP requests
Responsiveness 
Useful? Needed? Required? 
Or just a fancy fad?
Cross-device/browser 
IE? Android 2.3? Cloud browsers? 
K.I.S.S!
Fanboyism? 
Close, but no :P
Why not Node? 
The other side of the story
Relatively new 
Many unsolved problems
“There’s a module 
for that” 
Its an Android Play Store… 
Not an Apple App Store
</3 
Not for the weak-hearted
Productionizing Node 
Screw best practices. Whatever works is best.
Monitor and Alert! 
Nagios, Monit
Node @ flipkart
Log it. 
Bunyan, Winston
Server Health and 
Rotation Status 
Keep the difference in mind!
QPS vs Concurrency 
Wait, aren’t they the same?
Recap
Node in Production 
Isomorphism 
Useful tools and modules
Thank you 
@_abhinavrastogi

More Related Content

PDF
Real World Progressive Web Apps (Building Flipkart Lite)
PDF
Isomorphic javascript - Uppsala.js #8
PDF
React Webinar With CodePolitan
PPTX
Super tools to boost productivity in React dev env!
PDF
Unlimited Frameworks
PPTX
Single page application
PDF
How to run WebAssembly in your React Web Application
PPTX
What’s new in LightSwitch 2013?
Real World Progressive Web Apps (Building Flipkart Lite)
Isomorphic javascript - Uppsala.js #8
React Webinar With CodePolitan
Super tools to boost productivity in React dev env!
Unlimited Frameworks
Single page application
How to run WebAssembly in your React Web Application
What’s new in LightSwitch 2013?

What's hot (20)

PDF
Serverless computing con Azure Functions
PPTX
Azure Microservices in Practice, Radu Vunvulea, ITCamp 2016
PPTX
Visual Studio: The best tool for web developers.
PPTX
Interoperability of components built with different frameworks
PPTX
Watir - The Beginning
PPTX
Watir The Beginning
PPTX
Windows Store Apps: Tips & Tricks
PPTX
Web Based Development Introduction
PPTX
Demand driven applications with om.next and react native
PPTX
ATD9 2013 One ASP.NET
PDF
Front-End Modernization for Mortals
PPTX
Build fast word press site in react in 30 mins with frontity
PPTX
Rise of the responsive single page application
PDF
Client side production monitoring using - SyncApp Tool
PPTX
Architecture & Workflow of Modern Web Apps
PDF
Progressive Web Apps. What, why and how
PPTX
The state of testing @ Microsoft
PDF
Using eZ Platform as a Headless CMS (with Vue.js)
PPTX
Into to Webassmbly
PPTX
Headless WordPress and the future is here
Serverless computing con Azure Functions
Azure Microservices in Practice, Radu Vunvulea, ITCamp 2016
Visual Studio: The best tool for web developers.
Interoperability of components built with different frameworks
Watir - The Beginning
Watir The Beginning
Windows Store Apps: Tips & Tricks
Web Based Development Introduction
Demand driven applications with om.next and react native
ATD9 2013 One ASP.NET
Front-End Modernization for Mortals
Build fast word press site in react in 30 mins with frontity
Rise of the responsive single page application
Client side production monitoring using - SyncApp Tool
Architecture & Workflow of Modern Web Apps
Progressive Web Apps. What, why and how
The state of testing @ Microsoft
Using eZ Platform as a Headless CMS (with Vue.js)
Into to Webassmbly
Headless WordPress and the future is here
Ad

Similar to Node @ flipkart (20)

PDF
12 Reasons to Choose NodeJS for Product Development.pdf
PPTX
Nodejs web service for starters
PDF
Practical Node js Building Real World Scalable Web Apps 1st Edition Azat Mard...
PPTX
Node.js Web Apps @ ebay scale
PPTX
Mastering the Art of Node.js: Development Services for Success
PDF
React.js vs Node.js: Overview, Use Cases, and Key Features
PDF
React Js vs Node Js_ Which Framework to Choose for Your Next Web Application
PDF
A Comprehensive Guide to Building Websites with Node.pdf
PDF
All You Need to Know About Using Node.pdf
KEY
Dcjq node.js presentation
PPTX
Why Choose Node.js For Your Next Web Development Project?
PPTX
Why Should You Consider Using Node.Js Development? A Detail Guide
PPT
Node js
PDF
Introduction to Node.js
PDF
Top Node.js Development Company | Scalable Web & App Solutions
PPTX
Node js meetup
PDF
Node.js Web Development SEO Expert Bangladesh LTD.pdf
PDF
What to Look for in a NodeJS App Development Company: Key Considerations
KEY
Starting Node
PDF
Learning Nodejs For Net Developers Harry Cummings
12 Reasons to Choose NodeJS for Product Development.pdf
Nodejs web service for starters
Practical Node js Building Real World Scalable Web Apps 1st Edition Azat Mard...
Node.js Web Apps @ ebay scale
Mastering the Art of Node.js: Development Services for Success
React.js vs Node.js: Overview, Use Cases, and Key Features
React Js vs Node Js_ Which Framework to Choose for Your Next Web Application
A Comprehensive Guide to Building Websites with Node.pdf
All You Need to Know About Using Node.pdf
Dcjq node.js presentation
Why Choose Node.js For Your Next Web Development Project?
Why Should You Consider Using Node.Js Development? A Detail Guide
Node js
Introduction to Node.js
Top Node.js Development Company | Scalable Web & App Solutions
Node js meetup
Node.js Web Development SEO Expert Bangladesh LTD.pdf
What to Look for in a NodeJS App Development Company: Key Considerations
Starting Node
Learning Nodejs For Net Developers Harry Cummings
Ad

Recently uploaded (20)

PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Approach and Philosophy of On baking technology
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
Big Data Technologies - Introduction.pptx
PDF
Electronic commerce courselecture one. Pdf
PDF
KodekX | Application Modernization Development
PPTX
Cloud computing and distributed systems.
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Encapsulation theory and applications.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPT
Teaching material agriculture food technology
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Approach and Philosophy of On baking technology
Unlocking AI with Model Context Protocol (MCP)
Encapsulation_ Review paper, used for researhc scholars
Big Data Technologies - Introduction.pptx
Electronic commerce courselecture one. Pdf
KodekX | Application Modernization Development
Cloud computing and distributed systems.
Diabetes mellitus diagnosis method based random forest with bat algorithm
Encapsulation theory and applications.pdf
Chapter 3 Spatial Domain Image Processing.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Spectral efficient network and resource selection model in 5G networks
NewMind AI Weekly Chronicles - August'25 Week I
20250228 LYD VKU AI Blended-Learning.pptx
Teaching material agriculture food technology
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Per capita expenditure prediction using model stacking based on satellite ima...
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication

Node @ flipkart