---
title: "Comment by Mm Cc on \"Why Your Node.js App Freezes (And How Worker Threads Can Save You)\" | Hashnode"
description: "Great example of moving CPU-heavy work off the main thread. A key best practice is to also set a reasonable resourceLimits for your Worker Thread to prevent a s"
url: "https://hashnode.com/posts/why-your-nodejs-app-freezes-and-how-worker-threads-can-save-you/68018214a7e17df949bc335d/comment/69d796788260cfb75969cefb"
---

[Discussion](https://hashnode.com/posts/why-your-nodejs-app-freezes-and-how-worker-threads-can-save-you/68018214a7e17df949bc335d)

Comment [Why Your Node.js App Freezes (And How Worker Threads Can Save You)](https://hashnode.com/posts/why-your-nodejs-app-freezes-and-how-worker-threads-can-save-you/68018214a7e17df949bc335d)

[Mm Cc](https://hashnode.com/@mmcc)

[Apr 9](https://hashnode.com/posts/why-your-nodejs-app-freezes-and-how-worker-threads-can-save-you/68018214a7e17df949bc335d/comment/69d796788260cfb75969cefb)

Great example of moving CPU-heavy work off the main thread. A key best practice is to also set a reasonable `resourceLimits` for your Worker Thread to prevent a single background task from consuming excessive memory and causing a different kind of outage.
