Tagged articles
worker threads
13 articles · Page 1 of 1
DeepSeek Harness uses three distinct continuation mechanisms—Goal, Ralph, and Workflow—each with explicit trade-offs: Goal requires human resume due to non-persisted activation, Ralph runs fresh sessions with shared workspace, and Workflow lets models write orchestration scripts in isolated worker threads.
AI agentsDeepSeek HarnessGoal mechanism
0 likes · 24 min read

The article examines Jarred Sumner's push for genuine multi‑threading in JavaScript, explains why current worker_threads are essentially multi‑process with high memory and communication costs, outlines Bun's proposed shared‑thread model, discusses V8 design constraints, TC39's Shared Structs effort, and the potential impact on Node.js developers.
BunJavaScriptMultithreading
0 likes · 9 min read

This article explains how Node.js Worker Threads enable true parallelism for CPU‑intensive tasks, prevent event‑loop blocking, improve scalability with microservices, leverage shared memory for speed, and lead to cleaner, more maintainable code, complete with real‑world examples and starter code.
MultithreadingNode.jsbackend development
0 likes · 10 min read

This article explains why OceanBase enforces minimum values for min_worker_cnt and max_worker_cnt, shows the source‑code formulas used to compute them, demonstrates how to verify and adjust these parameters, and clarifies the impact of tenant memory and Meta‑tenant reservations on the final values.
Database ConfigurationOceanBaseparameter tuning
0 likes · 12 min read

This article details how Qunar improved its Serverless FAAS platform by introducing Node.js worker_threads for parallel computation, designing a thread‑pool with shared buffers and postMessage communication, and implementing comprehensive cache pre‑heating and governance, resulting in a 72% reduction in P99 latency and more stable service performance.
CachingCloud FunctionsNode.js
0 likes · 18 min read

This article examines reliable and relatively reliable methods for executing untrusted JavaScript code in Node.js, comparing new Function, the VM module, and Worker Threads, discussing their isolation levels, memory and CPU limits, performance overhead, and extending to container and WebAssembly security solutions.
Node.jsSecurityVM
0 likes · 8 min read

This article examines reliable and trustworthy execution of dynamic JavaScript in Node.js, compares isolation techniques such as new Function, the vm module, and worker threads, evaluates their performance and security trade‑offs, and explores advanced container and WebAssembly sandboxing options.
Node.jsVMWebAssembly
0 likes · 9 min read


政采云技术Dec 29, 2019 · Backend Development
This article explains Node.js's internal concurrency model, covering the distinction between processes and threads, debunking the single‑thread myth, and detailing how the event loop, child processes, cluster mode, and worker_threads enable high‑performance, multi‑core execution.
ClusterNode.jsThread
0 likes · 17 min read

This article demonstrates creating Node.js Worker Threads to compute Fibonacci numbers, explains message passing via workerData and parentPort, explores shared memory with SharedArrayBuffer, and shows how to isolate and limit thread CPU usage using Linux CGroup controls, including retrieving thread IDs via a custom native addon.
Node.jsSharedArrayBuffercgroup
0 likes · 8 min read

This article explains the architecture of Node.js, the limitations of its single‑threaded event loop for CPU‑heavy workloads, and how the experimental worker_threads module provides a multi‑threaded solution, including core concepts, APIs, best practices, and sample code to improve performance.
CPU-intensiveConcurrencyNode.js
0 likes · 10 min read

This article dives deep into Node.js internals, explaining why the runtime is both single‑threaded and multi‑threaded, how the event loop, libuv thread pool, epoll/kqueue, and worker_threads collaborate to deliver non‑blocking I/O and efficient concurrency.
EpollNode.jsasynchronous I/O
0 likes · 10 min read

Node.js 10 LTS introduces major updates such as native HTTP/2 support, BigInt, recursive directory creation, CLI flag auto‑completion, Windows installer improvements, V8‑based code coverage, deprecated Buffer constructors, and experimental Worker Threads, while also upgrading OpenSSL and adding PEM‑level encryption.
BIGINTHTTP/2LTS
0 likes · 11 min read

This article explains the design, configuration parameters, core data structures, initialization, coordinator distribution, worker execution, checkpointing, and shutdown procedures of MySQL 5.6's Multi‑Threaded Slave (MTS) parallel replication, providing a code‑level walkthrough for developers and DBAs.
Database ReplicationMTSMySQL
0 likes · 17 min read
