SlideShare a Scribd company logo
NODE &
MICRO-SERVICES
MICHAEL HABERMAN
FREELANCER
AGENDA
• Challenges with micro-services code base
• How node may help
GENERAL MICRO-SERVICE ARCHITECTURE
Client
API Gateway
User service Purchase service Analytics service
Permission
service
QUICK LOOK AT OUR DEMO
CHALLENGES WITH CODE
• Small code
• A lot of infra:
• Logs / Tracing
• Configuration
• Health checks
• Process management
• Common logic (authentication) – package or a service?
CREATING COMMON LOGS
• Common logs:
• Centralized logs
• Formatted logs
• No need for special configuration
• Multiple outputs
• Many uses ELK stack (Elastic search, Log stash,
Kibana)
HOW TO: COMMON LOG
• Three options
• Every microservice implements log features
• Huge mess!!
• Log service
• Cons: lot of network, chances to failure, may impact performance
• Pro: Easier to deploy changes
• Common package (npm)
• Easy to implement and maintain
COMMON LOGS
COMMON LOGS
• Log separated into package
• Very simple to use
• One problem….
• commonLogger determine Winston version
PACKAGE PEER DEPENDENCIES
• NPM’s peer dependencies
Service A –Winston 2.3.1
CommonLogger
Winston >= 2.x.x
SEMANTIC VERSIONING
X.Y.Z
Bug fixNew featureBreaking change
COMMON PACKAGES – MUST HAVE
• Logs
• Express
• Health checks
• Correlation id (tracing)
• Configuration
TRACING
Client
API Gateway
Purchase service Analytics serviceUser service
TRACING
• Add custom HTTP header: x-correlation-id (some guid)
• Log the correlation id anytime
• Search by specific id while debugging
• Middleware is a great tool for the job
TRACING
NODE – PROCESS MANAGEMENT
• Restart on crash
• Don’t restart forever
• Use pm2 / forever
THANK YOU!
michael@haberman.i
o
@hab_mic
QUESTIONS?

More Related Content

What's hot (20)

PPTX
End user-experience monitoring
Site24x7
 
PPTX
Site24x7 Server Monitoring from the Cloud
Site24x7
 
PPTX
Site24x7 Cloud Monitoring
Site24x7
 
PPTX
[old] Network Performance Monitoring for DevOps and IT
Site24x7
 
PPTX
Architecture Sustaining LINE Sticker services
LINE Corporation
 
PPTX
Sql minder intro
Ankit Chansoriya, CFA
 
PPTX
Micro-services architecture
Farwa Ansari
 
PPTX
VMware Monitoring-Discover And Monitor Your Virtual Environment
Site24x7
 
PPTX
Real User Monitoring (RUM)
Site24x7
 
PPTX
Expose BizTalk to the world (ACSUG)
Wagner Silveira
 
PPTX
API Gateway: Nginx way
inovia
 
PPTX
Nagios Conference 2014 - Paloma Galan - Monitoring Financial Protocols With N...
Nagios
 
PDF
Codemash 2007 - Scm with subversion
Christopher Grant
 
PPTX
Transforming monolith systems to microservices
Alon Yair
 
PPTX
Oracle SOA Suite Performance Tuning- UKOUG Application Server & Middleware SI...
C2B2 Consulting
 
PPTX
SignalR with ASP.NET MVC 6
Tung Nguyen Thanh
 
PPT
Internet services, protocols, applications, packets and frames
Giuseppe Cramarossa
 
PDF
Role Based Access Controls (RBAC) for SSH and Kubernetes Access with Teleport
DevOps.com
 
PDF
IXP Manager Workshop
APNIC
 
PDF
NATS: A Cloud Native Messaging System
Shiju Varghese
 
End user-experience monitoring
Site24x7
 
Site24x7 Server Monitoring from the Cloud
Site24x7
 
Site24x7 Cloud Monitoring
Site24x7
 
[old] Network Performance Monitoring for DevOps and IT
Site24x7
 
Architecture Sustaining LINE Sticker services
LINE Corporation
 
Sql minder intro
Ankit Chansoriya, CFA
 
Micro-services architecture
Farwa Ansari
 
VMware Monitoring-Discover And Monitor Your Virtual Environment
Site24x7
 
Real User Monitoring (RUM)
Site24x7
 
Expose BizTalk to the world (ACSUG)
Wagner Silveira
 
API Gateway: Nginx way
inovia
 
Nagios Conference 2014 - Paloma Galan - Monitoring Financial Protocols With N...
Nagios
 
Codemash 2007 - Scm with subversion
Christopher Grant
 
Transforming monolith systems to microservices
Alon Yair
 
Oracle SOA Suite Performance Tuning- UKOUG Application Server & Middleware SI...
C2B2 Consulting
 
SignalR with ASP.NET MVC 6
Tung Nguyen Thanh
 
Internet services, protocols, applications, packets and frames
Giuseppe Cramarossa
 
Role Based Access Controls (RBAC) for SSH and Kubernetes Access with Teleport
DevOps.com
 
IXP Manager Workshop
APNIC
 
NATS: A Cloud Native Messaging System
Shiju Varghese
 

Viewers also liked (20)

PDF
Big Data Europe: Simplifying Development and Deployment of Big Data Applications
BigData_Europe
 
PDF
IBM Bluemix Nice meetup #5 - 20170504 - Container Service based on Kubernetes
IBM France Lab
 
PDF
Veselík 1
Mária Čierna
 
PPTX
Analyze, Influence and Engage Your Customer - v1.7
Colter Bowman | Google Partner
 
PDF
Docker in Production, Look No Hands! by Scott Coulton
Docker, Inc.
 
PDF
E-commerce Berlin Expo - Divante - Anna Lankauf
E-Commerce Berlin EXPO
 
PPT
Exponentiële groei v2
guest6b41899
 
PDF
150430 regiosessie corv_almelo
KING
 
PDF
Performance Benchmarking of Clouds Evaluating OpenStack
Pradeep Kumar
 
PPTX
What is DevOps?
Tyler (TJ) McCleve
 
PDF
VoxxedDays Bucharest 2017 - Powering interactive data analysis with Google Bi...
Márton Kodok
 
PDF
Migrate Oracle WebLogic Applications onto a Containerized Cloud Data Center
Jingnan Zhou
 
PPTX
Microsoft Microservices
Chase Aucoin
 
PPTX
Nagios Conference 2014 - Fernando Covatti - Nagios in Power Transmission Util...
Nagios
 
PDF
Elks for analysing performance test results - Helsinki QA meetup
Anoop Vijayan
 
PDF
From 10 Users to 10 Milion in 10 Days - Adam Lev, Tamar Labs - DevOpsDays Tel...
DevOpsDays Tel Aviv
 
PPS
Spring Batch
maknihamdi
 
PPTX
6 Million Ways To Log In Docker - NYC Docker Meetup 12/17/2014
Christian Beedgen
 
PPTX
A BRIEF OVERVIEW ON WILDLIFE MANAGEMENT
Pintu Kabiraj
 
PDF
Stormshield Visibility Center
NRC
 
Big Data Europe: Simplifying Development and Deployment of Big Data Applications
BigData_Europe
 
IBM Bluemix Nice meetup #5 - 20170504 - Container Service based on Kubernetes
IBM France Lab
 
Veselík 1
Mária Čierna
 
Analyze, Influence and Engage Your Customer - v1.7
Colter Bowman | Google Partner
 
Docker in Production, Look No Hands! by Scott Coulton
Docker, Inc.
 
E-commerce Berlin Expo - Divante - Anna Lankauf
E-Commerce Berlin EXPO
 
Exponentiële groei v2
guest6b41899
 
150430 regiosessie corv_almelo
KING
 
Performance Benchmarking of Clouds Evaluating OpenStack
Pradeep Kumar
 
What is DevOps?
Tyler (TJ) McCleve
 
VoxxedDays Bucharest 2017 - Powering interactive data analysis with Google Bi...
Márton Kodok
 
Migrate Oracle WebLogic Applications onto a Containerized Cloud Data Center
Jingnan Zhou
 
Microsoft Microservices
Chase Aucoin
 
Nagios Conference 2014 - Fernando Covatti - Nagios in Power Transmission Util...
Nagios
 
Elks for analysing performance test results - Helsinki QA meetup
Anoop Vijayan
 
From 10 Users to 10 Milion in 10 Days - Adam Lev, Tamar Labs - DevOpsDays Tel...
DevOpsDays Tel Aviv
 
Spring Batch
maknihamdi
 
6 Million Ways To Log In Docker - NYC Docker Meetup 12/17/2014
Christian Beedgen
 
A BRIEF OVERVIEW ON WILDLIFE MANAGEMENT
Pintu Kabiraj
 
Stormshield Visibility Center
NRC
 
Ad

Similar to How to: node js & micro-services (20)

PDF
Divide and Conquer – Microservices with Node.js
Sebastian Springer
 
PDF
API Microservices with Node.js and Docker
Apigee | Google Cloud
 
PPTX
Monolithic and Microservice architecture, Feature of Node JS 10, HTTP2
Atharva Jawalkar
 
PPTX
Microservices with Node and Docker
Tony Pujals
 
PDF
All-inclusive insights on Building JavaScript microservices with Node!.pdf
Shelly Megan
 
PDF
Richardrodger nodeday-2014-final
Richard Rodger
 
PDF
Richardrodger nodeday-2014-final
Richard Rodger
 
PDF
Microservices for Java Architects (Chicago, April 21, 2015)
Derek Ashmore
 
PPTX
Monolith to microservices - our journey
Giles Williams
 
PDF
Micro-services Battle Scars
Richard Rodger
 
PDF
Breaking Down the Monolith - Peter Marton, RisingStack
NodejsFoundation
 
PPTX
Microservices architecture
Faren faren
 
PDF
The working architecture of NodeJS applications, Виктор Турский
Sigma Software
 
PDF
The working architecture of node js applications open tech week javascript ...
Viktor Turskyi
 
PDF
Microservices Architecture
Srinivasan Nanduri
 
PPTX
Evolution of a cloud start up: From C# to Node.js
Steve Jamieson
 
PDF
Writing microservices in Java -- Chicago-2015-11-10
Derek Ashmore
 
PDF
Writing microservices in java java one-2015-10-28
Derek Ashmore
 
PDF
#ATAGTR2020 Presentation - Microservices – Explored
Agile Testing Alliance
 
ODP
Microservices - the lean way
Bruno Bossola
 
Divide and Conquer – Microservices with Node.js
Sebastian Springer
 
API Microservices with Node.js and Docker
Apigee | Google Cloud
 
Monolithic and Microservice architecture, Feature of Node JS 10, HTTP2
Atharva Jawalkar
 
Microservices with Node and Docker
Tony Pujals
 
All-inclusive insights on Building JavaScript microservices with Node!.pdf
Shelly Megan
 
Richardrodger nodeday-2014-final
Richard Rodger
 
Richardrodger nodeday-2014-final
Richard Rodger
 
Microservices for Java Architects (Chicago, April 21, 2015)
Derek Ashmore
 
Monolith to microservices - our journey
Giles Williams
 
Micro-services Battle Scars
Richard Rodger
 
Breaking Down the Monolith - Peter Marton, RisingStack
NodejsFoundation
 
Microservices architecture
Faren faren
 
The working architecture of NodeJS applications, Виктор Турский
Sigma Software
 
The working architecture of node js applications open tech week javascript ...
Viktor Turskyi
 
Microservices Architecture
Srinivasan Nanduri
 
Evolution of a cloud start up: From C# to Node.js
Steve Jamieson
 
Writing microservices in Java -- Chicago-2015-11-10
Derek Ashmore
 
Writing microservices in java java one-2015-10-28
Derek Ashmore
 
#ATAGTR2020 Presentation - Microservices – Explored
Agile Testing Alliance
 
Microservices - the lean way
Bruno Bossola
 
Ad

More from Michael Haberman (15)

PPTX
Deploying microservices on AWS
Michael Haberman
 
PPTX
Angular universal
Michael Haberman
 
PPTX
React in production
Michael Haberman
 
PPTX
Multiplayer game with angular and firebase
Michael Haberman
 
PDF
Javascript issues and tools in production for developers
Michael Haberman
 
PPTX
AWS Serverless solution for developers
Michael Haberman
 
PPTX
Angular 4 - quick view
Michael Haberman
 
PDF
React vs angular (mobile first battle)
Michael Haberman
 
PDF
React vs-angular-mobile
Michael Haberman
 
PPTX
MEAN.js Workshop
Michael Haberman
 
PPTX
AWS intro
Michael Haberman
 
PPTX
Angular Unit Test
Michael Haberman
 
PDF
Unit-testing and E2E testing in JS
Michael Haberman
 
PDF
XAML/C# to HTML/JS
Michael Haberman
 
PPTX
XAML/C# to HTML5/JS
Michael Haberman
 
Deploying microservices on AWS
Michael Haberman
 
Angular universal
Michael Haberman
 
React in production
Michael Haberman
 
Multiplayer game with angular and firebase
Michael Haberman
 
Javascript issues and tools in production for developers
Michael Haberman
 
AWS Serverless solution for developers
Michael Haberman
 
Angular 4 - quick view
Michael Haberman
 
React vs angular (mobile first battle)
Michael Haberman
 
React vs-angular-mobile
Michael Haberman
 
MEAN.js Workshop
Michael Haberman
 
AWS intro
Michael Haberman
 
Angular Unit Test
Michael Haberman
 
Unit-testing and E2E testing in JS
Michael Haberman
 
XAML/C# to HTML/JS
Michael Haberman
 
XAML/C# to HTML5/JS
Michael Haberman
 

Recently uploaded (20)

PDF
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
PDF
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PPTX
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
PDF
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PPTX
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
PDF
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
PDF
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
PPTX
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 

How to: node js & micro-services