SlideShare a Scribd company logo
Building Scalable Micro-services with Nodejs
Node.js
Scalable
Micro-Services
Server side javascript
Makes it great for IO bound tasks
Single threaded
Event driven
Best for asynchronous things
What do you think when you hear
‘scalable’?
What do I think when I hear
‘scalable’?
Will this code scale with your employees?
Building Scalable Micro-services with Nodejs
What is a Micro-Service?
Separate monolithic functionality into smaller parts.
MY AWESOME
MONOLITH
git
git git gitgit
svn? git git
Design Pattern
Then distribute those parts
in an individually scalable fashion,
behind an API Facade.
service
API Facade
service serviceservice service serviceservice
Room
Available
?
Monolithic
API
Payment
3rd
party
3rd
party
Translation
3rd
party
Client request Server response
Room
Available?
API Facade
Payment Translation
3rd
party
3rd
party
3rd
party
Client request Server response
With a powerful pattern comes great responsibility
Not everything can / should be microtized
Lower level design problems
will be multiplied
across codebases
Building Scalable Micro-services with Nodejs
Building Scalable Micro-services with Nodejs
What is the secret sauce?
Building Scalable Micro-services with Nodejs
The Pyramid Of Doom
Building Scalable Micro-services with Nodejs
How to:
DEAL WITH IT
Named Functions
Flatten Dat Code
Async Library
Also Flattens Dat Code
No Asynchronous IO?
.then(what the function (do) {
we(do)……..
• Pending
• Fulfilled
• Rejected
Basic Promises
Advanced Promising
BONUS SLIDE
Next generation
Scaling your micro services?
Cluster
Building Scalable Micro-services with Nodejs
pm2
Building Scalable Micro-services with Nodejs
Finding the right libraries
Q Bluebird
Building Scalable Micro-services with Nodejs

More Related Content

What's hot (20)

PDF
Advancing Your API Strategy in an Infrastructure World
Pronovix
 
PDF
deliver:agile - Enable your Agile Team with Continuous Delivery Pipelines
Esteban Garcia
 
PPTX
A Tale of Two Apps
Chris Tankersley
 
PPTX
Integration-Monday-Logic-Apps-Tips-Tricks
BizTalk360
 
PPTX
Outpost24 webinar - Api security
Outpost24
 
PPTX
SFDC Seamless Deployment Techniques
Pawan Tyagi (2x)
 
PDF
Lessons Learned from Revamping Our Doc Site
Pronovix
 
PDF
Swagger for-your-api
Tony Tam
 
PPTX
Scala from the Trenches
Kfir Bloch
 
PPT
A Tour of Swagger for APIs
Allen Dean
 
PPTX
The State of Testing 2017
SmartBear
 
PDF
Continuous Delivery Agile Tour Beirut 2015
Dimitri Baeli
 
PDF
Mobile automation using selenium cucumber & appium
Selenium Cucumber
 
PDF
Angular vs React - Devoxx BE 2017
Deepu K Sasidharan
 
PPTX
Scala from the Trenches - Java One 2016
Kfir Bloch
 
PDF
ACA-Mobile - Creating Enterprise Apps with MADP
ACA IT-Solutions
 
PDF
How to build a Whatsapp clone in 2 hours
Jane Chung
 
PDF
Designing APIs with OpenAPI Spec
Adam Paxton
 
PDF
DevOps Real-Time Projects | Edureka
Edureka!
 
PPTX
i18n tech talk
Hitesh Sharma
 
Advancing Your API Strategy in an Infrastructure World
Pronovix
 
deliver:agile - Enable your Agile Team with Continuous Delivery Pipelines
Esteban Garcia
 
A Tale of Two Apps
Chris Tankersley
 
Integration-Monday-Logic-Apps-Tips-Tricks
BizTalk360
 
Outpost24 webinar - Api security
Outpost24
 
SFDC Seamless Deployment Techniques
Pawan Tyagi (2x)
 
Lessons Learned from Revamping Our Doc Site
Pronovix
 
Swagger for-your-api
Tony Tam
 
Scala from the Trenches
Kfir Bloch
 
A Tour of Swagger for APIs
Allen Dean
 
The State of Testing 2017
SmartBear
 
Continuous Delivery Agile Tour Beirut 2015
Dimitri Baeli
 
Mobile automation using selenium cucumber & appium
Selenium Cucumber
 
Angular vs React - Devoxx BE 2017
Deepu K Sasidharan
 
Scala from the Trenches - Java One 2016
Kfir Bloch
 
ACA-Mobile - Creating Enterprise Apps with MADP
ACA IT-Solutions
 
How to build a Whatsapp clone in 2 hours
Jane Chung
 
Designing APIs with OpenAPI Spec
Adam Paxton
 
DevOps Real-Time Projects | Edureka
Edureka!
 
i18n tech talk
Hitesh Sharma
 

Viewers also liked (6)

PPTX
Performance Testing for Scalable Microservices - Martin Kulov
Martin Kulov
 
PPTX
Building Secure User Interfaces With JWTs (JSON Web Tokens)
Stormpath
 
PDF
Nanoservices and Microservices with Java
Eberhard Wolff
 
PPTX
Token Based Authentication Systems with AngularJS & NodeJS
Hüseyin BABAL
 
PDF
Omnikron webbinar - Microservices: enabling the rapid, frequent, and reliable...
Chris Richardson
 
PDF
JavaOne2017: ACID Is So Yesterday: Maintaining Data Consistency with Sagas
Chris Richardson
 
Performance Testing for Scalable Microservices - Martin Kulov
Martin Kulov
 
Building Secure User Interfaces With JWTs (JSON Web Tokens)
Stormpath
 
Nanoservices and Microservices with Java
Eberhard Wolff
 
Token Based Authentication Systems with AngularJS & NodeJS
Hüseyin BABAL
 
Omnikron webbinar - Microservices: enabling the rapid, frequent, and reliable...
Chris Richardson
 
JavaOne2017: ACID Is So Yesterday: Maintaining Data Consistency with Sagas
Chris Richardson
 
Ad

Similar to Building Scalable Micro-services with Nodejs (20)

PDF
What can you do with lambda in 2020
Yan Cui
 
PPTX
agile microservices @scaibo
Ciro Donato Caiazzo
 
PDF
The Not-So-Straightforward Road From Microservices to Serverless
Phil Calçado
 
PPTX
Cloudsolutionday 2016: Getting Started with Severless Architecture
AWS Vietnam Community
 
PDF
Serverless Design Patterns (London Dev Community)
Yan Cui
 
PDF
"Плюси та мінуси впровадження AWS Lambda в проєкт" Віталій Григоришин
Fwdays
 
PDF
Mobile and Serverless : an Untold Story
Vidyasagar Machupalli
 
PDF
Beware the potholes
Yan Cui
 
PDF
How to build a social network on serverless
Yan Cui
 
PDF
5 Key Steps To Implementing Micro Frontends On Kubernetes
Entando
 
PDF
Von JavaEE auf Microservice in 6 Monaten - The Good, the Bad, and the wtfs...
André Goliath
 
PDF
Serverless Design Patterns
Yan Cui
 
PDF
Has serverless adoption hit a roadblock?
Veselin Pizurica
 
PDF
"Micro-frontends from A to Z. How and Why we use Micro-frontends in Namecheap...
Fwdays
 
PDF
Beware the potholes on the road to serverless
Yan Cui
 
PDF
JUG Amsterdam - Orchestration of microservices
Bernd Ruecker
 
PDF
How to build a social network on Serverless (AWS Community Summit)
Yan Cui
 
PDF
How to build a social network on serverless | Yan Cui
AWSCOMSUM
 
PPTX
Logic Apps and Azure Functions
Daniel Toomey
 
PDF
Apply best parts of microservices to serverless
Yan Cui
 
What can you do with lambda in 2020
Yan Cui
 
agile microservices @scaibo
Ciro Donato Caiazzo
 
The Not-So-Straightforward Road From Microservices to Serverless
Phil Calçado
 
Cloudsolutionday 2016: Getting Started with Severless Architecture
AWS Vietnam Community
 
Serverless Design Patterns (London Dev Community)
Yan Cui
 
"Плюси та мінуси впровадження AWS Lambda в проєкт" Віталій Григоришин
Fwdays
 
Mobile and Serverless : an Untold Story
Vidyasagar Machupalli
 
Beware the potholes
Yan Cui
 
How to build a social network on serverless
Yan Cui
 
5 Key Steps To Implementing Micro Frontends On Kubernetes
Entando
 
Von JavaEE auf Microservice in 6 Monaten - The Good, the Bad, and the wtfs...
André Goliath
 
Serverless Design Patterns
Yan Cui
 
Has serverless adoption hit a roadblock?
Veselin Pizurica
 
"Micro-frontends from A to Z. How and Why we use Micro-frontends in Namecheap...
Fwdays
 
Beware the potholes on the road to serverless
Yan Cui
 
JUG Amsterdam - Orchestration of microservices
Bernd Ruecker
 
How to build a social network on Serverless (AWS Community Summit)
Yan Cui
 
How to build a social network on serverless | Yan Cui
AWSCOMSUM
 
Logic Apps and Azure Functions
Daniel Toomey
 
Apply best parts of microservices to serverless
Yan Cui
 
Ad

More from Michal Juhas (16)

PDF
Tech Mind Maps - Booklet Preview
Michal Juhas
 
PDF
IT Recruiter's Mind Maps - Booklet Preview
Michal Juhas
 
PDF
Three Secret Ingredients To Recruiting Software Developers
Michal Juhas
 
PDF
What i wish i knew in my 20's
Michal Juhas
 
PDF
Adaptive Upskill As The Future Of The Workforce
Michal Juhas
 
PDF
Introducing PlanetQuest on the TechsSmmit 2018
Michal Juhas
 
PDF
Metasearch Outlook 2017
Michal Juhas
 
PDF
Subscription Economy: How to shift mindset in 2017 and adapt to changing cons...
Michal Juhas
 
PPTX
How do we test nodejs apps?
Michal Juhas
 
PPTX
A walkthrough of JavaScript ES6 features
Michal Juhas
 
PPTX
Becoming Data Driven
Michal Juhas
 
PDF
Productive Android developers (Meetup slides)
Michal Juhas
 
PDF
iOS development best practices
Michal Juhas
 
PPTX
PHP Frameworks, or how I learnt to stop worrying and love the code
Michal Juhas
 
PPTX
Lessons Learnt from Backend Systems Development
Michal Juhas
 
PPTX
HotelQuickly Product & Engineering
Michal Juhas
 
Tech Mind Maps - Booklet Preview
Michal Juhas
 
IT Recruiter's Mind Maps - Booklet Preview
Michal Juhas
 
Three Secret Ingredients To Recruiting Software Developers
Michal Juhas
 
What i wish i knew in my 20's
Michal Juhas
 
Adaptive Upskill As The Future Of The Workforce
Michal Juhas
 
Introducing PlanetQuest on the TechsSmmit 2018
Michal Juhas
 
Metasearch Outlook 2017
Michal Juhas
 
Subscription Economy: How to shift mindset in 2017 and adapt to changing cons...
Michal Juhas
 
How do we test nodejs apps?
Michal Juhas
 
A walkthrough of JavaScript ES6 features
Michal Juhas
 
Becoming Data Driven
Michal Juhas
 
Productive Android developers (Meetup slides)
Michal Juhas
 
iOS development best practices
Michal Juhas
 
PHP Frameworks, or how I learnt to stop worrying and love the code
Michal Juhas
 
Lessons Learnt from Backend Systems Development
Michal Juhas
 
HotelQuickly Product & Engineering
Michal Juhas
 

Recently uploaded (20)

PDF
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
PDF
Ampere Offers Energy-Efficient Future For AI And Cloud
ShapeBlue
 
PDF
Français Patch Tuesday - Juillet
Ivanti
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
Predicting the unpredictable: re-engineering recommendation algorithms for fr...
Speck&Tech
 
PDF
Women in Automation Presents: Reinventing Yourself — Bold Career Pivots That ...
DianaGray10
 
PDF
Building Resilience with Digital Twins : Lessons from Korea
SANGHEE SHIN
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
PDF
Wojciech Ciemski for Top Cyber News MAGAZINE. June 2025
Dr. Ludmila Morozova-Buss
 
PPTX
Extensions Framework (XaaS) - Enabling Orchestrate Anything
ShapeBlue
 
PPTX
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
PDF
Persuasive AI: risks and opportunities in the age of digital debate
Speck&Tech
 
PPTX
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PDF
Rethinking Security Operations - SOC Evolution Journey.pdf
Haris Chughtai
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
Ampere Offers Energy-Efficient Future For AI And Cloud
ShapeBlue
 
Français Patch Tuesday - Juillet
Ivanti
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
Predicting the unpredictable: re-engineering recommendation algorithms for fr...
Speck&Tech
 
Women in Automation Presents: Reinventing Yourself — Bold Career Pivots That ...
DianaGray10
 
Building Resilience with Digital Twins : Lessons from Korea
SANGHEE SHIN
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
Wojciech Ciemski for Top Cyber News MAGAZINE. June 2025
Dr. Ludmila Morozova-Buss
 
Extensions Framework (XaaS) - Enabling Orchestrate Anything
ShapeBlue
 
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
Persuasive AI: risks and opportunities in the age of digital debate
Speck&Tech
 
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
Rethinking Security Operations - SOC Evolution Journey.pdf
Haris Chughtai
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 

Building Scalable Micro-services with Nodejs