Discover why process managers like PM2 are helpful for managing Node.js processes and microservices.
- [Instructor] We've got a couple different options…for running Node.js Services.…The easiest way would be to start each manually with node.…However, you'd have to start each process one at a time,…and it doesn't watch and restart with changes.…There's also nodemon, but it's also limited…to one process at a time,…and it's intended only for development.…How can we manage multiple Node.js processes…at the same time?…We're going to use PM2, which is a Node.js process manager.…
What's that mean?…A Node.js process manager is a service…that runs in the background.…Meaning it runs behind the scenes,…and without user interaction.…They're used to control and mange Node.js processes.…This includes operations like starting,…stopping and restarting on changes or errors.…They also monitor resource usage, like CPU or memory.…Finally, they gather logs in one place,…which is convenient for debugging and log management.…
Process managers are essential debugging…and performance tools for a number of reasons.…You can see the number of times the process is restarted,…
Author
Released
7/13/2018- Building a troubleshooting mindset
- Why measure performance?
- What's a microservice architecture?
- Managing microservices with PM2
- Effective logging strategies
- Debugging Node.js applications
- Benchmarking performance
- Profiling code execution
- Knowing what to optimize
Skill Level Intermediate
Duration
Views
Related Courses
-
Node.js: Testing and Code Quality
with Jon Peck3h 25m Intermediate -
Node.js: Design Patterns
with Alex Banks2h 11m Intermediate -
Node.js: Deploying Applications
with Kirsten Hunter1h 24m Intermediate
-
Introduction
-
What you should know3m 4s
-
Using challenges44s
-
Demo application tour4m 24s
-
1. Build a Troubleshooting Mindset
-
Finding what went wrong5m 11s
-
Why measure performance?3m 12s
-
Documenting problems2m 36s
-
When is a problem resolved?4m 10s
-
-
2. Introducing Microservices
-
3. Effective Logging Strategies
-
Why and what should I log?6m 26s
-
Choosing a logging library5m 40s
-
Request logging with Morgan6m 39s
-
Correlating requests in logs6m 18s
-
-
4. Debugging Node.js Applications
-
Debugging isn't just logging3m 51s
-
-
5. Measuring Performance
-
Benchmarking performance4m 51s
-
Profiling code execution7m 17s
-
-
Conclusion
-
Knowing what to optimize5m 13s
-
Caching fundamentals2m 54s
-
Next steps2m 23s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Introducing PM2 for process management