Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

LinkedIn Learning

Node.js: Debugging and Performance Tuning

via LinkedIn Learning

Overview

Learn how to debug and optimize the performance of your Node.js applications.

Syllabus

Introduction
  • The power of debugging and performance tuning
  • What you should know
  • Using challenges
  • Configuring your development environment
  • Demo application tour
1. Build a Troubleshooting Mindset
  • Finding what went wrong
  • Why measure performance?
  • Documenting problems
  • When is a problem resolved?
2. Introducing Microservices
  • What's a microservice architecture?
  • Microservice rock, paper, scissors
  • Introducing PM2 for process management
  • Managing microservices with PM2
3. Effective Logging Strategies
  • Why and what should I log?
  • Problems with Node.js console
  • Implementing Express error pages
  • Choosing a logging library
  • Adding Winston for Node logging
  • Request logging with Morgan
  • Correlating requests in logs
  • Cross-application request correlation
  • Challenge: Cross-application request IDs
  • Solution: Cross-application request IDs
4. Debugging Node.js Applications
  • Debugging isn't just logging
  • Introducing Node's built-in debugger
  • Command-line debugging with Node inspect
  • Debugging Node in Chrome DevTools
  • Debugging Node with Visual Studio Code
5. Measuring Performance
  • Benchmarking performance
  • Benchmarking with ApacheBench
  • Benchmarking code with Winston
  • Profiling code execution
Conclusion
  • Knowing what to optimize
  • Caching fundamentals
  • Next steps

Taught by

Jon Peck

Reviews

4.6 rating at LinkedIn Learning based on 46 ratings

Start your review of Node.js: Debugging and Performance Tuning

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.