Muhammad Sufiyaninnosufiyan.hashnode.dev·Jan 3, 2025Using Worker Threads in Node.jsWelcome back! Let's dive into how we can use worker threads in Node.js to perform parallel operations efficiently. Setting Up Worker Threads Step 1: Create a Worker Threads Example File Start by creating a folder, ThreadsExample, and within it, creat...Improving Node PerformanceWorker Thread
Muhammad Sufiyaninnosufiyan.hashnode.dev·Jan 3, 2025Introduction to Worker Threads in Node.jsWelcome back! Before we proceed further, let’s delve into an exciting feature in Node.js: worker threads. This built-in module allows us to utilize threads for executing JavaScript code in parallel. Worker threads are particularly beneficial for CPU-...Improving Node PerformanceWorker Thread
Hoang Nguyen Vietvieth.hashnode.dev·Dec 27, 2024#3 Khi nào dùng Async? khi nào dùng Worker?Có bao giờ bạn phân vân về việc trường hợp nào thì chọn sử dụng Async trường hợp nào thì dùng Worker trong dự án? Việc chọn giữa Worker và Async phụ thuộc vào tính chất công việc và yêu cầu của hệ thống: Worker • Định nghĩa:Là một tiến trình hoặc ...41 readsasynchronous
Hassan Mujahidsyntax-summit.hashnode.dev·Nov 5, 2024Understanding Node.js: Is It Single-Threaded or Multi-Threaded?One of the most common questions about Node.js is whether it’s single-threaded or multi-threaded. This question can be a bit tricky because the answer is: Node.js is single-threaded for JavaScript execution but has multi-threaded capabilities for spe...Node.js Threading Model
Dushmantadushmanta.hashnode.dev·Sep 9, 2024Achieving Multi-Threading in Node.js Using Worker Threads for Better PerformanceHave you ever wondered how JavaScript/Node.js efficiently handles complex requests despite being single-threaded? What happens when a CPU-intensive task runs on your backend, affecting other requests? Is there a way to run these tasks separately and ...Node.js
Saish Borkarsaishborkar.hashnode.dev·Jul 23, 2024Boosting Node.js Performance: A Comprehensive Guide to Worker ThreadsIntroduction While node.js is a single threaded language , it can still be made to achieve multi threading. Node.js can scale well due to its non-blocking I/O feature.It can perform very well, but what about cases where you need to perform a cpu inte...63 readsNode.js
Amodamodmathapati.hashnode.dev·Apr 8, 2024Maximizing Performance with Node.js ThreadsWe all hav heard that Node.js is known for its single-threaded, asynchronous programming model but is this true? Lets dive into that deeper! Traditionally, Node.js has been single-threaded, meaning it operates on a single process. While this design i...Node.js
Animesh Mondalblogs-krypto.hashnode.dev·Mar 9, 2024Multithreading in Node: Boosting Node.js Performance with Worker ThreadsNode.js runs the JavaScript code using only a single thread, which means only one statement can be executed at a time. This limitation can be problematic when dealing with CPU-intensive tasks (encryption, decryption, compression, decompression, etc.)...1 like·41 readsNode.js
Shubham Sharmashubhamsharmas.hashnode.dev·Nov 18, 2023Understanding Node.js Worker Threads From Ground UpWelcome to the guide on Node.js worker threads! In this series, we're diving into how worker threads can supercharge your Node.js apps. Today, we'll start with the basics—understanding threads, processes, and how Node.js handles heavy tasks. Let's be...28 readsnode.js worker threads
Divij Sehgaldivijsehgal.hashnode.dev·Jul 10, 2023Parallelism in Node.jsIntroduction Parallelism is a fundamental concept in modern software development, allowing us to harness the power of multiple CPU cores to improve performance and handle concurrent operations efficiently. In the context of Node.js, a JavaScript runt...46 readsNode.js